Hot answers tagged

15

This is possible with pandoc. If the Markdown you've posted is in the file test.md you can generate a PDF called test.pdf with the following command: pandoc test.md -o test.pdf The PDF file looks like this: pandoc converts the Markdown to a PDF using LaTeX. It recognizes that the input is Markdown from the file extension, but if you use a different ...


4

I'd use RedNotebook for notes and small documents. It's really a journal or diary, but it lets me to take quick notes with (modified) markdown and MathJax (with webkit), and then, if necessary, to export to html or pdf or LaTeX. If I type: = Title = Here is a //short document// including Markdown and Math, here is the equation: $$f(x)=x^2$$ ...


4

Use the package option final as explained on page 4 of the documentation.


3

Assuming you are using pdfTeX (which is included with MiKTeX), just use the graphicx package, and \includegraphics: \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics[width=0.4\textwidth, angle=0]{image1.pdf} Here goes the text \end{document} Looking into the comments, the question appears to ask how to clip part of a ...


3

Simply add bookmarksopen=true for the default bookmarks-open to also expand them. I will refrain from posting a screenshot as my viewer ignores all these options anyway and acroread simply takes forever to even consider possibly thinking about sometime in the distant future opening a file. (But the OP confirmed that it works in Adobe's viewer.) ...


3

The "convert" utility from imagemagick tools may help you. These are essentially command-line tools. You don't say which operating system are you using, but if it's windows you may also find this page useful. Basic usage: on a command-line terminal type: convert -quality 75% file.pdf file.jpg You can also convert to other formats (png, etc.) and use a ...


2

In comments you added the relevant PostScript code: (Classifiers) [9.36057 3.95929 6.24078 5.51782 5.51782 3.95929 4.68082 3.95929 6.12003 4.68085 0 ] xsh xsh will be a defined alias in the file header for xshow the postscript command for letterspaced text, with the spacing being given by the numbers in the square brackets. xshow isn't supported by psfrag ...


2

What I meant by my original comment is this: with pandoc -t html5 -o test.pdf test.md you can bypass LaTeX entirely; you are only required to install wkhtmltopdf, which is a single executable like pandoc on windows. Results as follows: You may control the output with css.


2

This is easily done with pdfTeX built-in commands: \documentclass{article} %just to create some example external JavaScript file \begin{filecontents*}{macros.js} app.alert("hello world!"); \end{filecontents*} % create PDF object from file content \immediate\pdfobj stream file {macros.js} %create JavaScript action \immediate\pdfobj{ ...


2

According to the documentation of bookmark you can use the open option; if you want to set the level, you can say openlevel=<level>; so \usepackage[open,openlevel=1]{bookmark} will show something like whereas the simple open option will show Tested with Skim and Adobe Reader on Mac OS X.


2

toutf16 function should be changed to this: \directlua{ function toutf16(str) tex.write(string.char(92) .. "376" .. string.char(92) .. "377") for c in string.utfvalues(str) do if c < 0x10000 then tex.write(string.char(92) .. string.format("%03o", c / 256) .. string.char(92) .. string.format("%03o", c % 256)) ...


2

You want the overpic package: http://mirror.unl.edu/ctan/macros/latex/contrib/overpic/


1

The following code works as required: \pdfoutput=1 \def\attach#1{% \immediate\pdfobj stream file {#1}% \pdfannot width 10pt height 10pt depth 0pt { /Subtype /FileAttachment /C [ 0 0.5 0 ] /FS << /F (#1.txt) /Type /Filespec /EF << /F \the\pdflastobj\space 0 R >> >>}} \attach{\jobname.tex} \bye


1

\includegraphics[page=1, trim = 18mm 100mm 18mm 5mm, clip, width=14.35cm]{file.pdf} Here you can decide pagenumber, trim is the bounding box and you have to clip. This should work. EDIT: After further investigation I can conform. You are calling latex .tex But as the documentation of pdfpages you can see, that calling latex in dvi mode it will only ...


1

It also works completely without hyperref. You first have to declare a \newcounter in the preamble. Then, instead of setting the PDF page labels at the first numbering change, you set the counter. You then set the PDF page labels at the second numbering change, using the counter's value for the start of the second entry. \documentclass{report} ...



Only top voted, non community-wiki answers of a minimum length are eligible