I made an invitation for an event in LaTeX, with output at 4.25in x 5.5in.  I'd like to place four of these in a 2x2 grid, and get an 8.5in x 11in document for printing.  No margin changing, no resizing, just stick the pages together.  One would think this should be easy, but I haven't had any luck actually doing it...  Some utilities I've tried:   pdfjam --nup 2x2 out.pdf (output has dimensions 8.27in x 11.69in. I can't tell what's gone wrong, but I don't want this off center) imagemagick with +append and -append.  The PDF gets rasterized and the text doesn't come out well.   Any ideas?  The option to set the page size originally was  \usepackage[paperwidth=4.25in,paperheight=5.5in,margin=0.7in]{geometry}
123853
I would like to style my document in such a way that the page is divided into four equal parts and then the text is printed in those pages: it is similar to twocolumn but I also want to have, say two rows. The reason is that I would like to cut the page into four smaller pieces, so it would be very convenient if LaTeX can do this. Thank you in advance for help!
45362
I'm writing a report in LaTeX and I'm using excel to calculate, make graphs and tables. What would you recommend me to do to import it to latex?  I have tried taking print-screen and import as figures, but if the image scale isn't 100% it gets blurry and ugly.  I've been trying to export, print and save selected area as pdf. But no matter what I try, it exports with selected paper size. So it has a huge margin and I think it would take to much time to make a custom paper size for each figure.  Any thoughts?
61908
I was hoping to find a way to insert several (many) pages of a pdf but crop off the header (with the date, filename, etc.). I'm using   \subsection{Notes} \includepdf[scale=0.8,pages=8-20,pagecommand=\subsection{blub}]{Notes.pdf}   but maybe I need to use pdftk somehow to do the batch cropping?   Thanks for any suggestions!
72103
It's my first time working with a two-column document (declared as an argument to \documentclass) and I need to put in a very wide figure. The thing is, LaTeX puts it bounded by a column so it either (1) gets truncated, bleeding off the border or [right column] or (2) displays with an awkward text/line wrapping. Is there any way for me to get it to display the way \maketitle does, that is, at the top of the page (ideally) but at least spanning both columns and no awkward line wrapping? BTW, I use the following code to display my figure: \begin{figure}     \centering     \includegraphics[width=6in]{tictac.png}     \caption{\textsf{The structure of our tic-tac-toe implementation.}}     \label{fig:ds} \end{figure}
104798
I successfully changed the paper size from A4 to B5 of the Thesis template downloaded from   I modified the main.tex file by setting twoside and adding the following lines:  \usepackage{calc} \usepackage[dvips=false,pdftex=false,vtex=false,b5paper]{geometry} \geometry{bindingoffset=5mm} \usepackage[cam,b5,center,pdftex]{crop}   The margins are set in the Thesis.cls file at line 74. The default values for A4 paper are:  \setmarginsrb  { 1.5in}  % left margin                { 0.6in}  % top margin                { 1.0in}  % right margin                { 0.8in}  % bottom margin                {  20pt}  % head height                {0.25in}  % head sep                {   9pt}  % foot height                { 0.3in}  % foot sep   which have been modified to:  \setmarginsrb   {4.7cm} %leftmargin                 {3.4cm} %topmargin                 {3.4cm} %rightmargin                 {3.4cm} %bottommargin                 {15pt}  % head height                 {0.15in}  % head sep                 {9pt}  % foot height                 {0.3in}  % foot sep   These settings produced a page layout like the following.  The questions are:   What are the correct margins for the B5 paper size? My University does not provide any information. With the settings I made in the main.tex and Thesis.cls, it seems I can change only left and right margin, because nothing seems to change by modifying the other parameters. Did I mess up with the code?
88365
This has bugged me for a while. Are there any packages/templates/methodologies for effectively creating flyers in LaTeX?  Just in case there's some ambiguity in my terminology, I'm looking to create single-page, letter-sized pamphlets/posters, posted to advertise events.  Any ideas?
102369
Well I "can" do this using the koma options.. However it results in a warning and the effect isn't completelly what I like it to be.  First the way I do it is:   \clearpage \KOMAoptions{paper=A3,paper=portrait} \recalctypearea  \chapter{Chosen airfoil and wing shape} \label{app:cad-airfoil}    \clearpage \KOMAoptions{paper=A4,paper=portrait} \recalctypearea   Now this results in a warning as follow:     /appendixAirfoil.tex: Package typearea Warning: Bad type area   settings! (typearea) The detected line width is about 55% (typearea)   larger than the heuristically detected line width. (typearea) You   should e.g. decrease DIV, increase fontsize (typearea) or change   papersize.   Another problem I have with above is that the margins are still relative to the paper size. Making the margins ridiculously large, and the actually area where I can put the cad drawing very small. (Ok I could put the cad at an offset from the margin, however then the accompanying text looks weird staring at a random position).  So How can I fix this problem with the margins (or problems, though I think it is the same one?). - Preferably just keep the same margins as A4 sheets, and if that's not easily possible manually set them?
37064
I am preparing image files to be included in a latex document. The image file is generated by printing a Matlab plot.   If I print the plot in eps format, the content of the eps file is fully occupied with the plot;   if I print the plot in pdf format, then there are big margins above and below the plot in the pdf file;   if I use ps2pdf to convert the eps file into a pdf file, the big margins will be added above the plot.   I would like to use pdflatex, so I prefer pdf format of image files. I was wondering how I can save the plot in pdf format without the big margin above and below the plot?
2517
I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic"  My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both.  Sample code that doesn't work:  \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure}   If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks.
115623
I’m trying to find a way of being able to modify all of the margins of a page whenever I want to and as many times as I want to on a single page in order to be able to put text very easily where I want on a page.   I have thought of using the geometry package and using   \newgeometry{left=6.75cm, right=1cm, top=1cm, bottom=1cm}  %…  \restoregeometry   but unfortunately this only works for whole pages, so I can only change the margins once per page (and then they are valid for the whole page without having the possibility of changing them again).   I found the following script on the internet which enables users to change margins on the fly, just as I want to. The code below works fine and enables me to change the left and right margins of my page as many times as I want to, but unfortunately, it doesn’t give me the option of changing the top and bottom margins.  % placed before \begin{document}  \newenvironment{changemargin}[2]{% \begin{list}{}{% \setlength{\leftmargin}{#1}% \setlength{\rightmargin}{#2}% }% \item[]} {\end{list}}  % And then inside the document, whenever I want to use % the command to change the margins on the current page  \begin{changemargin}{1.9875cm}{-3.7625cm} % this means the left margin increases by 1.9875cm compared % to the default left margin (4.7625cm) (so left margin=6.75cm here) % and the right margin decreases by 3.7625cm (so right margin=1cm)  % ... (text or pictures in new environment)  \end{changemargin}   For this reason, I tried to adapt the code above and came up with the code below:  % placed before \begin{document} \newenvironment{changemargin}[3]{% \begin{list}{}{% \setlength{\leftmargin}{#1}% \setlength{\rightmargin}{#2}% \setlength{\topmargin}{#3}% }% \item[]} {\end{list}}  % And then to use the command: \begin{changemargin}{1.9875cm}{-3.7625cm}{1cm} % ... \end{changemargin}   It compiles and still changes the left and right margins but the top margin remains unchanged. (I haven’t yet tried to change the bottom margin).  Can anyone help me get this code to work completely, and enable me to modify the left, right, top and bottom margins of a page? Thanks.
48224
This question has been asked a lot, but for reason I cannot get it to work. I'd like to include a .eps image in my document - I am using pdflatex in TeXMaker. Below is the input (I am providing the whole preamble incase there is some interference.   \documentclass[11pt]{article} \usepackage{times} \usepackage{graphicx} \usepackage{epstopdf} %converting to PDF \usepackage{amssymb} \usepackage{amsmath} \usepackage{mathtools} \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} \usepackage[parfill]{parskip} \setcounter{secnumdepth}{5} %how deep sections are numbers \usepackage{float} \usepackage[font={sf,footnotesize},labelfont=bf, justification=justified, singlelinecheck=off]{caption} \usepackage[font=footnotesize]{subcaption} \usepackage[scaled]{helvet}  \usepackage{titlesec}  \usepackage[T1]{fontenc} \usepackage[export]{adjustbox} %for large figures \usepackage{upgreek} \usepackage{microtype} \usepackage{setspace} \singlespacing \usepackage[defaultlines=4,all]{nowidow}  \includegraphics[scale=1]{/../model_1_2.eps}    The error I get is:      ! Package pdftex.def Error: File `/model_1_2-eps-converted-to.pdf' not   found.See the pdftex.def package documentation for explanation.Type H    for immediate help.... .../../model_1_2.eps}   I hope someone can help.
62432
I am trying to automate the solution proposed by egreg to  by hooking into \begin{document} and \end{document}.  So, egreg's solution works fine:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum}  \begin{document} \setbox0=\vbox{ \lipsum[1-6] } \dimen0=\dp0 \pdfpageheight=\dimexpr\ht0+2cm\relax \ifdim\pdfpageheight&lt;\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi \unvbox0\kern-\dimen0 \end{document}   But can't seem to get this to work:  \documentclass{article} \def\MinimumPaperHeight{12cm} \usepackage{geometry} \geometry{paperwidth=\MinimumPaperHeight,paperheight=\maxdimen,margin=1cm} \usepackage{lipsum} \usepackage{environ}  \NewEnviron{MyBox}{     \setbox0=\vbox{\BODY}% }{%     \dimen0=\dp0%     \pdfpageheight=\dimexpr\ht0+2cm\relax%     \ifdim\pdfpageheight&lt;\MinimumPaperHeight \pdfpageheight=\MinimumPaperHeight \fi%     \unvbox0\kern-\dimen0% }  \AtBeginDocument{\begin{MyBox}} \AtEndDocument{\end{MyBox}}  \begin{document} \lipsum[1-6] \end{document}   Hooking into \AtBeginDocument is per this solution on .
94069
I am writing a report in a 2 column page format. Now I want to insert a rather large picture that requires to use full width of the page and cut the columns horizontally. How can I achiveve this? Please see the images below for what I mean :
23646
When working on a joint project, my collaborators and I encountered that we obtain significantly different PDF outputs with the same latex source. To be more specific, this already happens with the example .tex (and .sty) files for this year's NeurIPS 2021 conference: . When compiling the example .tex file on Overleaf, I obtain exactly the same pdf output as provided by the organizers, with a length of 5.5 pages (). When compiling the same file (with the same style file) on my local system, the result is half a page longer, filling the complete 6 pages. Here are some observations: Line breaks seem to happen at the same places. Instead all the vertical spaces seem to be a little bit larger in the file compiled on my own system. There is not a specific object that needs more space. Instead, it looks like every single line needs a bit more space. However, the font size itself is identical. Also the textwidth and textheight, as well as, the paper measures (letterpaper) seem to be the same. Even switching between MikTex and TexLive on my local system does not solve the problem. Since NeurIPS has strict page limits, it makes a crucial difference whether a file is half a page longer or not. Any help is highly appreciated! Thanks!
96749
I have a poster I would like to print.  It is far larger than a single sheet of paper that can fit in my printer.  What is a program that I can use to print it out on separate sheets of paper (to assemble later)?
92583
I have 100,000 identically-sized, but unique, PNG/JPG images which I want to automatically layout onto A4 sheets which can then be exported as print-ready PDFs.  So assuming I can fit 8 of these images per page in a 4x2 grid, I'm looking to input my 100,000 images and output 12,500 PDFs.  I'm a programmer so I could probably write a script to do this myself (e.g. PHP/Python), but I was wondering whether there are any tools/scripts/software that already exists that can do this automatically.
107488
Question says it all: I am using classicthesis with XeTeX to typeset my PhD thesis. I want to use B5 paper size (176 × 250 mm) and the beautiful Linux Libertine font. I'm wondering how to    calculate the optimal page margins actually apply these settings to the document   Any help is greatly appreciated =)  EDIT: I should add that I need to generate two different PDF files from this:   a version with papersize A4 (210 × 297 mm), where the B5 layout is (approximately) centered, and crop marks are shown, to pass on to the printing company a version with papersize B5 for online distribution, having the same layout as the printed one.   I tried fiddling with using  and \areaset command, but to no avail.