Pandoc: does not include input files - latex

I have a LaTeX file that refers to many other single files. Those files are included/referenced by
\input{somefolder/somefile}
Context: Now I'm trying to import the LaTeX to Adobe Indesign by converting it to Docx first and then to Indesign using Pandoc.
Problem: But somehow Pandoc is generating the output just from the main tex file (the entry point) and does not follow the inputs. What am I doing wrong?
pandoc main.tex -t docx -o main.docx

Newer versions of pandoc seem to support the \input{} construct (tried on pandoc 1.19.2.1).
Also, why go via docx? Try:
pandoc input.tex -o output.icml
and place the generated ICML in your InDesign document.

Related

removing the date from a PDF-Latex output through IPython Notebook conversion

How can I remove the date from a PDF-Latex output through IPython Notebook conversion? I have tried removing so many packages in the Latex document but the date doesn't seem to be removed
Download the IPython/Jupyter ipynb file as (la)tex file. Open the tex file and add the line
\date{}
just before
\maketitle
Then compile the tex file with with pdflatex.

pandoc LaTex add CSS to create PDF

I have the a markdown file and a css file in the same folder at same level.
I want to use the css in creaing the PDF output.
I tired the following command
pandoc -c pandoc.css input.md -o output.pdf
The styles did not apply.
what am I missing here?
By default, pandoc uses LaTeX under the hood to generate the PDF, which doesn't understand CSS.
However, if installed, pandoc can also use wkhtmltopdf which does undertand CSS. To generate a PDF with wkhtmltopdf, include -t html5, e.g. pandoc -t html5 input.md -o output.pdf.
To include an external CSS file, either use --css mystyles.css or use markdown document metadata like:
---
css: mystyles.css
---
my document body

How to add watermark to the doxygen generated PDF file

I am generating the PDF file using doxygen on a Linux system.
I am using "make" in the latex folder. This generates the refman.pdf. I want to add a "INTERNAL ONLY" watermark to this. How can I achieve this? Is there a configuration item in the doxygen config file?

Gedit + Latex Plugin - Bibtex not working

I writed an article in latex some time ago. Now that i use Ubuntu i work with Gedit + Latex plugin. I use bibtex and i found no problem running the work already done.
Now when i add a new entry to my bibtex file it doens't appear on pdf (like it wasn't there [?] ). The older references are correctly displayed.
This has nothing to do with Ubuntu or gedit. Simply adding an entry to your .bib file is not sufficient. You will have to run bibtex again to display the new references (assuming you have cited them in the .tex file).
If you are using latex to compile to a pdf, follow these steps:
latex filename
bibtex filename
latex filename
latex filename
dvipdf filename (or you can do dvips filename followed by ps2pdf filename
If you are using pdflatex, then do these:
pdflatex filename
bibtex filename
pdflatex filename
pdflatex filename

To get the current $USER in LaTeX

My friend has the following in his computer in a LaTeX document
\includegraphics[width=13.0cm]{/Users/max/Dropbox/2_user_cases.png}
I would like to have a variable for the username such that we can collaborate faster.
Pseudo-code about what I wont
\includegraphics[width=13.0cm]{/Users/`echo $USER`/Dropbox/2_user_cases.png}
How can you have such an command inside LaTeX?
I'm not sure you can access envvars from LaTeX. As Rutger Nijlunsing has said, you can try "~/" since it is an alias to "/Users/<username>".
If there are other envvars that you need to access, my suggestion is using Makefile to 'compile' the .tex (or a shell script) calling sed to replace such word.
sed -i "s/max/$USER/" file.tex
latex file.tex
bibtex ...
latex ...
in the graphicx package, you can define a folder for latex to look for all your images in, like this:
\graphicspath{{images/}}
In this particular configuration, latex looks for a folder in the same directory as your file called "images."
I don't see why you'd want to use a full path just to get image in...
Make a folder, put your .tex source file in there, create a folder for your images.
Stick you work in some sort of revision control system (git, SVN, etc etc.)
Commit often, and you're on your way.
use ~ for your homedirectory (which is probably /Users/$USER):
\includegraphics[width=13.0cm]{~/Dropbox/2_user_cases.png}

Resources