Tag Info

New answers tagged


If you have to use the Word document, you could first create a PDF from Word and then include the PDF pages in your LyX document. By doing it through LyX, you avoid having to post-process as suggested by David Carlisle. Personally, I recreate in LyX, the content from Word, et al, if at all possible.


Ok, I've just been battling the same problem. My solution was to add a \graphicspath{{figs/}} in the beginning of the file, so that it know where to look for the .pdf file. I'm not sure why, but adding figs/ in the beginning of the input command \input{figs/AMB-SyRM4d.pdf_tex} was not enough. Hope this helps.


Add the adjustbox package to your preamble with the export option, and use \includegraphics[valign=c,..]{...} Here's a minimal example: \documentclass{article} \usepackage{subfig} \usepackage[export]{adjustbox} \newcommand{\includegraphicsmaybe}[2]{% \IfFileExists{#2} {\includegraphics[valign=c,width=#1]{#2}} ...


If you put your different sketches in separate files, you can input then on demand : \documentclass{article} \usepackage{tikz} \newcommand{\MultInput}[2]{% \foreach \i in {#1} {% \pgfmathparse{{#2}[\i-1]}% \input{\pgfmathresult}}% } \begin{document} % inputs sketchB.tex \MultInput{2}{"sketchA","sketchB","sketchC"} % inputs ...


Use the command `\endinput' to show the explicit end of a file. The LaTeX compiler will not read anything after this command. For clarity I would recommend you use it as follows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \endinput %%%%%%%%%%%%%%%%% Every thing ignored after this line %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Top 50 recent answers are included