Questions tagged [pdfpages]
{pdfpages} is a package that simplifies the inclusion of external multi-page PDF documents in LaTeX documents.
860
questions
1
vote
1
answer
33
views
Compatibility between vmargin and pdfpages?
I'm trying to include a PDF (a cover page) at the beginning of my document but the PDF is shifted both to the left and to the top.
I'm using vmargin to handle my margins and pdfpages for PDF inclusion ...
1
vote
1
answer
56
views
Overlay a tikz drawing when using includepdf
When I display 1-page music on the web (or as a PDF preview) I want to limit the (free) use of the music by placing a white triangle as per the image below (here it is shaded, just to be clear);
(...
0
votes
1
answer
74
views
Adding pdfs from custom directory inserts only one page
When I put the "ToBeInserted.pdf" file in my latex project folder (XeLaTex, TexLive 2024), it inserts all the pages. However, if I put into any other directory it inserts only one page! Why ...
1
vote
1
answer
53
views
Clash between crop and pagecolor affecting includepdf
My document needs crop marks. The first page has text and a background colour set by \pagecolor, which works fine. Then \pagecolor is used to set the background back to white (as in the MWE). However, ...
1
vote
1
answer
36
views
In LyX is it possible to insert a PDF file but condense multiple PDF pages to a single compiled page in LyX?
In lyx I'm using the insert->file->external material and I chose the pdf options from pages 22-34 of some pdf, what I want to do is have every 4 pages (or some other number for example 6 or 2) ...
0
votes
0
answers
36
views
Latex: Add pdf page without split the text content
I want to add a pdf page to my current latex pdf file, but i got a problem. When i use \includepdf, then the position where i put this command will auto add a pagebreak, like the image below.
This is ...
1
vote
0
answers
59
views
Refer to first and last page of each included PDF – Blank page on top
I am referring to this question.
I would like to do the same, but adding a blank page before beginning the inclusion of PDFs in the document.
I use the following command in the preamble to insert a ...
0
votes
0
answers
62
views
Including articles in a thesis document
I am trying to figure out to compile an article based thesis in LaTeX and am struggling to find a neat way to include the articles in their original journal format. All the articles were compiled in ...
0
votes
1
answer
39
views
How to make sure the "background"(watermark)is only for the first page when using pdfpages to include a pdf?
\documentclass[12pt, a4paper, UTF8, scheme = plain]{ctexart}
\usepackage{amsmath}
\usepackage{pdfpages}
%%% \usepackage{draftwatermark}
%%% \SetWatermarkText{DRAFT}
%%% \SetWatermarkScale{1}
%%%%%%%%%%...
0
votes
0
answers
29
views
pdfpages includepdfmerge with noautoscale for one document but not for the other
When I use
\includepdfmerge[nup=2x1,delta={-17.525cm 0cm}]{A.pdf,1,B.pdf,1}
both documents get scaled to the paper limits, and when I use
\includepdfmerge[nup=2x1,noautoscale,delta={-17.525cm 0cm}]{A....
3
votes
1
answer
71
views
Refer to first and last page of each included PDF
I would like to refer to the first and last pages for each of the several PDF documents I am including in a manuscript using \includepdf. Does anyone have suggestions on how to do that?
I tried the ...
0
votes
1
answer
73
views
Can I include pdf (using pdfpages pack) and automatically get the number of the inserted pdf
I make long technical (building engineering) documentation.
In those docs, the standard is to explain stuff in the main doc and put a reference to a detailed calculation at the end.
So I would like to ...
1
vote
1
answer
42
views
Use datatool variable for including a pdf
I'd like to generate a bulk letter with datatool and include a different pdf for each row. Can this be done with pdfpages?
\documentclass[paper=a4]{scrlttr2}
\usepackage{fontspec}
\usepackage{...
0
votes
0
answers
31
views
Can I insert a page with pdfpages when the text naturally causes a pagebreak?
Quite simply, I want to insert a page using pdfpages, but instead of causing a pagebreak at the position in the text where I call the command, I want it to wait until the text would break naturally - ...
0
votes
1
answer
129
views
newpax and pdfpages: include bookmarks of subdocuments in maindocument
Using the pdfpages package we can include whole PDF documents in our new maindocument. I will call the documents to be included "sub-pdfs" and the new maindocument "archive-document&...
0
votes
0
answers
44
views
includepdf doesn't find all the files in the folder
I want to use includepdf to include several .pdf files in my latex text. I am using \usepackage{pdfpages} and when I call the first file using: \includepdf[pages=-,pagecommand={},width=1\textwidth]{...
1
vote
1
answer
49
views
pdfpages Error with subfiles and XeLaTeX
I have a project with the following structure:
./sections/appendices/appendices.tex
./sections/appendices/my_file.pdf
main.tex
Here's a MWE:
main.tex
\documentclass{article}
\usepackage{pdfpages}
\...
0
votes
0
answers
22
views
pdf figure repeats and overlays other figures
My tex file seems fine when you download it, but on google preview (like in email but will sometimes go away if you zoom in far enough) and sometimes for others viewing the pdf, the figures get ...
0
votes
1
answer
44
views
Merge PDF files with includepdf and have page numbering per file and total
I would like to merge different PDF files and have two different page numberings.
The header should have #current PDF# - #current page# (1-1, 1-2, ...), next PDF will have (2-1, 2-2,...)
The footer ...
0
votes
0
answers
66
views
Include A3 PDF page in A4 LaTeX document
I want to include an A3 map in the appendix of my thesis. When I include the A3 PDF with the code below, it prints as an A4 page. How can I make it A3?
\begingroup
\includepdf[landscape=true]{...
0
votes
1
answer
72
views
Errors not allowing compiling [closed]
I'm new to Latex, but have been making a study guide for my class which has gotten very large. I changed one small thing, I believe I changed a section name, and now I get this error that I cannot for ...
1
vote
1
answer
55
views
Creating landscape "sheet", two pages per sheet, hyperlinks intact
I have a working document with lots of graphics and everything nicely placed. It is set up for double-sided printing so that every other page has a slightly wider margin on the inside where the book ...
1
vote
2
answers
90
views
Preserving Cross-references links in an extracted PDF
When I write my lectures, I write them in one document such as this mwe
% document name : main.tex
\documentclass{scrbook}
\usepackage{etoc}
\newcommand{\chaptertoc}[1][Contenu du chapitre]{%
%\...
1
vote
1
answer
68
views
How to append a PDF file to a LaTeX and keep its aspect ratio? [duplicate]
I would like to append a PDF file to a LaTeX document and keep its aspect ratio, which is different than the original aspect ratio of the document.
To clarify, I have a PDF file which is a standard ...
0
votes
1
answer
60
views
includepdf not sizing correctly the page
I'm using pdfpages (in overleaf) to include a cover for my document. As you can see in the picture, it doesn't fit to the page. I've tried many options (noautoscale, fitpage, scale) but it is always ...
0
votes
0
answers
50
views
Adding a full-page image or PDF page at the first convenient opportunity
What would be the best option to insert full page (full page height and width) images or .PDF pages such that I want it to be included in the first available empty page without interfering the flow of ...
0
votes
1
answer
83
views
Compile pdfpages Code with LuaLaTeX
Consider the following MWE:
\documentclass[
a4paper
]{article}
\usepackage{pdfpages}
\newcount\firstmaxpages
\newcount\secondmaxpages
\newcount\curpage
\newcount\untilpage
\makeatletter
\newif\if@...
2
votes
0
answers
69
views
How to carry over bookmarks from included pdf to main pdf?
I am including multiple PDFs in a main latex document (on Overleaf). However, the bookmarks of these included PDFs do not carry over to the main PDF. I can see bookmarks in the included pdfs, but I ...
0
votes
0
answers
71
views
Convert JPG images to PDF [duplicate]
I have multiple jpg files and I want to create a PDF with one image per page without any margin. Until now I used something like this and was enough because all images were the same size.
\...
1
vote
1
answer
40
views
How to add alternating (book) indentation into an existing pdf?
I have my own latex script and I need to add an already existing .pdf file, but I need it in the printing form (my latex document class has the twoside parameter).
I am using the pdfpages package, so ...
0
votes
2
answers
143
views
How to Overlay Two PDFs in LaTeX with Adjustable Opacity?
I am working on a project where I need to overlay two PDF documents in LaTeX and control the opacity of each layer. Specifically, I want to include two PDF pages in a single page and adjust how much ...
0
votes
1
answer
139
views
Read in multiple-page PDF and apply watermark to all pages
I would like to read in a multi-page pdf and then apply a watermark to all of the pages on it.
Here is the LaTeX script I'm using
\documentclass[12pt,twoside]{article}
\usepackage[printwatermark]{...
1
vote
1
answer
54
views
You cannot use \raise in vertical mode error
\documentclass{article}
\usepackage{mwe}
\usepackage{pdfpages}
\usepackage{tikz}
\NewDocumentEnvironment{Insert}{m}{%
\AddToHookNext{shipout/foreground}
\bgroup
\put(0,-\pdfpageheight)
\...
1
vote
3
answers
80
views
How to fix page numbering and page references in the table of contents?
Hey in my table of contents appendixes display incorrectly
The chapter "List of tables" is actually on page 40, but "Appendix A" (In the picture named as "Dodatek A", &...
3
votes
1
answer
122
views
What is the "noautoscale" in pgfpages in LaTeX?
In pdfpages package, there are noautoscale and fitpaper options and so on. I understand what the fitpaper means. But what does noautocale mean? What does the noautoscale scale to? I have done a test, ...
0
votes
2
answers
73
views
Combining pdfpages (signature mode) with geometry (showcrop)
I am laying out a book using LuaLaTeX and memoir, to be printed on a page of width 145mm and height 235mm. This all works very well. (I have a sample document, using some public-domain text, but it's ...
1
vote
1
answer
52
views
How to add page # of ## to an exam with a front page
I am using the exam package as follows:
\documentclass[answers, addpoints]{exam}
\usepackage{lipsum}
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\begin{document}
%\includepdf{...
1
vote
1
answer
40
views
Adding title and author to toc for included pdfs
My former college is starting a departmental journal which I am editing and typesetting. I have edited and typeset every contributed article individually using the article class and initially tried to ...
0
votes
1
answer
107
views
How to remove the margin of the command `\includegraphics[options]{name}`?
Just like the picture below, I have a pdf page that its width is 6.32 inch and its height is 8.18 inch, and I used tikz making a rectangle which has the same width and height as the pdf page in ...
1
vote
0
answers
73
views
includegraphics keeps invisible part of image [duplicate]
When using includepdf and includegraphics to include a pdf or an image, the trimmed part is only hidden but not removed.
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[...
0
votes
0
answers
24
views
Including pdf with pdfpages corrupts figures [duplicate]
I want to include THIS PDF in my TEX file but for some reason the output is messed up. The figures in the PDF are corrupted(see the titles in attached figure).
To reproduce, run:
\documentclass{...
0
votes
0
answers
48
views
How can I add specific pages of a PDF file as backgrounds on different pages?
I want to add specific pages from a PDF as backgrounds to different pages in my LaTeX document, creating a new command for each desired image. How can I do this? I'm somewhat new and can't find how to ...
1
vote
0
answers
48
views
Missing hyperlinks and wrong page numbering while including pdf files in table of contents
I am creating a dynamic table of contents by adding pdf files. Following are the problems
Original pdf files have hyper links which disappear after putting together with table of contents. How to ...
-1
votes
1
answer
85
views
Insert pdf between text
I want to insert figure below into my document to a specified scale of 0.7 between text and I also want it captioned. If I use the figure environment it creates a whole page for itself(even after ...
0
votes
0
answers
68
views
Booklet with pdfpages: avoid rotation
I'm trying to print an A5 booklet on A4 paper.
With
\includepdf[pages=-,landscape,noautoscale,booklet]{myfile}
(or signature=20 instead of booklet), where myfile is the original A5 pdf, the pages are ...
1
vote
1
answer
119
views
Combining several pdf files into a single pdf file. How can I include all of the bookmarks?
I have about ten pdf files, all of which have bookmarks. I want to combine all ten files into a single file. I also want all the bookmarks to be retained in the process.
Here is my current method to ...
1
vote
0
answers
27
views
Generate TOC with custom chapter names
I am trying to write a book which will mostly be a collection of many PDF files.
At this time I have this structure:
%main.tex
\documentclass[12pt,twoside,a4paper]{book} ...
0
votes
0
answers
45
views
Batch correct Latex PDF's with wrong encoding to correct umlauts
at my university the template everyone uses seems to use the standard ot1 encoding. This leads to all umlauts to be correctly displayed but if copied they turn into two characters. Ex. Makro¨okonomik, ...
2
votes
1
answer
165
views
Incompatibility between dinbrief and pdfpages?
The combination of class dinbrief and package pdfpages is not compiling for me. Here's the MWE (well, minimum non-working example in this case):
\documentclass[]{dinbrief}
\usepackage[demo]{pdfpages}
\...
0
votes
1
answer
112
views
Having issues inserting an A1 size, landscape PDF page into LaTeX document [duplicate]
I would like to insert an A1 sized, landscape oriented, PDF page into a LaTeX document that besides this page only has regular A4-sized portrait pages. I'm currently using the pdfpages package, but ...