LyXProblem with pdfpages

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
willy
Posts: 2
Joined: Fri Nov 06, 2015 12:56 pm

Problem with pdfpages

Post by willy »

Hi everyone,
I'm new here and I hope to write my problem in the right place, following rules of the forum.
My main problem happen when I try to import a pdf file in Lyx because it import only the first page of the pdf whatever I do.
I'm using this procedure:
Insert --> File --> External material, choose the PDF you want to include, and set the template to PDFPages.
After go to the second tab, LaTeX and LyX options and write "pages=-".

Also I tried via Latex and that import all in lyx, but the problem persist.

Code: Select all

%% LyX 2.2.0dev created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{pdfpages}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{babel}





\usepackage{babel}


\makeatother

\usepackage{babel}
\begin{document}

\includepdf[pages=-]{Myfilename} 
\end{document}
Thank you all,

William

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Problem with pdfpages

Post by Johannes_B »

Welcome,

i am not a LyX user, so i can't say much on this end, but the LaTeX Code looks ok. Did you check with an external viewer, that the pdf file really does have more than one page?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
willy
Posts: 2
Joined: Fri Nov 06, 2015 12:56 pm

Re: Problem with pdfpages

Post by willy »

Thanks Johannes_B for the hint, but I'm sure that my pdf has many pages. Also I tried to use different pdf.
Post Reply