TeX - LaTeX Asked by Nre on August 14, 2021
Would someone have an elegant way to render an inward fold or gatefold card? I can’t seem to find anything/package on the subject, there is the gcard package, but it does offer this option.
Here is an illustration of such a fold.
Thank you for your help.
edit, context: An invitation card which would include the text in the middle square.
A couple of ideas, one based on minipage
and the other on tabular
. Both of these effectively use 1/4 of the textwidth, then 1/2 the textwidth, then 1/4 of the textwidth, with possible adjustments to leave space between the three components.
% gatefoldprob.tex SE 594176
%documentclass[landscape]{article} % PDF output not printed as landscape on my PC
documentclass{article}
usepackage{comment}
begin{document}
noindentbegin{minipage}{0.23textwidth}
LEFT TEXT FILLING SOME SPACE
end{minipage}
hfil
begin{minipage}{0.48textwidth}
CENTER TEXT FILLING A LOT MORE SPACE
end{minipage}
hfil
begin{minipage}{0.23textwidth}
RIGHT TEXT FILLING SOME SP
end{minipage}
newpage
begin{tabular}{|p{0.21textwidth}|p{0.43textwidth}|p{0.21textwidth}|}
LEFT TEXT FILLING SOME SPACE &
vspace{2cm}CENTER TEXT FILLING A LOT MORE SPACE &
RIGHT TEXT FILLING SOME SPACE
end{tabular}
end{document}
In the tabular
code I have included vertical lines showing the interface between the three columns.
I have no idea what you might want to put on the three "columns" of your gatecards. In any event if you use any of the above you will have to consider the location of the columns and how to put text in your desired (vertical) locations.
Following your question's edit I have extended my MWE to show how you could put an invitation on the center of the gatefold.
% gatefoldprob.tex SE 594176
%documentclass[landscape]{article} % PDF output not printed as landscape on my PC
documentclass{article}
usepackage{comment}
begin{document}
mbox{}
vfill
noindentbegin{minipage}{0.23textwidth}
LEFT TEXT FILLING SOME SPACE
end{minipage}
hfil
begin{minipage}{0.48textwidth}
%vfill
CENTER TEXT FILLING A LOT MORE SPACE
%vfill
end{minipage}
hfil
begin{minipage}{0.23textwidth}
RIGHT TEXT FILLING SOME SP
end{minipage}
vfill
mbox{}
newpage
begin{tabular}{|p{0.21textwidth}|p{0.43textwidth}|p{0.21textwidth}|}
LEFT TEXT FILLING SOME SPACE &
vspace{2cm}CENTER TEXT FILLING A LOT MORE SPACE &
RIGHT TEXT FILLING SOME SPACE
end{tabular}
newpage
mbox{}
vfill
noindentbegin{minipage}{0.23textwidth}
LEFT TEXT?
end{minipage}
hfil
begin{minipage}{0.48textwidth}
%vfill
%CENTER TEXT FILLING A LOT MORE SPACE
setlength{parskip}{1em}
Dear Joe and Jacqui,
We sincerely hope that you will be able to attend Josephine's
coming of age party on 1 April 2027.
With best wishes, Jack & Joan
RSVP
%vfill
end{minipage}
hfil
begin{minipage}{0.23textwidth}
RIGHT TEXT?
end{minipage}
vfill
mbox{}
end{document}
I thought that you might try something like this yourself. --- GOM
Correct answer by Peter Wilson on August 14, 2021
You do not provide any context so the best I can do is to give you a start. Of course there are many things that one could add.
documentclass{article}
usepackage[skins]{tcolorbox}
usepackage{tikz}
usetikzlibrary{fadings}
tikzfading[name=lfade,
left color=transparent!100, right color=transparent!80,middle
color=transparent!100]
definecolor{page}{RGB}{248,245,222}
newtcolorbox{mybox}[1][]{enhanced,colback=page, boxrule=0pt,
sharp corners,
overlay={
path (frame.north west) -- coordinate[pos=0.25] (aux1)
coordinate[pos=0.5] (aux2)
coordinate[pos=0.75] (aux3) (frame.north east);
fill[gray,path fading=lfade] (frame.south west) rectangle (aux1);
fill[gray,path fading=lfade] (frame.south-|aux2) rectangle (aux3);
},
drop lifted shadow,#1}
begin{document}
begin{mybox}[height=6cm]
end{mybox}
end{document}
Answered by user240002 on August 14, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP