Tag Info

New answers tagged preview

4

Here is a solution based on atbegshi and answers packages. The idea is to use answers that write contents of theorem, lemma to an external file (mtfile.tex), discard all pages (all contents of the main file http://tex.stackexchange.com/a/267555/71471) and then use the external file to output only theorems. We use a newif test \onlytrue for only theorem and ...

1

SOLVED There was a missing package was required to do the preview. I ran dvipng in the cmd line on a .dvi file and it installed the missing packages. The preview now works. The missing package was zhmetrics.

2

Do not use the environment preview. Use package auto-pst-pdf and the environment postscript instead if you run it with pdflatex --shell-escape <file>: \documentclass[12pt, a4paper]{article} \usepackage[a4paper,top=1 in,bottom=1 in,left=0.7 in,right=0.7 in]{geometry} \usepackage[utf8]{inputenc} \usepackage[misc]{ifsym} \usepackage{amsmath} ...

2

My crystal ball reports that the first error you got is ! Undefined control sequence. <recently read> \c@lor@to@ps then multiple errors of the form ! Undefined control sequence. \XC@usec@lor ...string \color@ #1#2\endcsname \@@ \fi \space l.25 \Tcircle{2} Tcircle here is just the location of ...

1

The problem is that \parindent is zero when you evaluate it. \documentclass{memoir} \usepackage[active,pdftex,tightpage,psfixbb]{preview} \usepackage{xcolor} \usepackage{minted} \pagestyle{empty} \begin{document} \begin{preview} \begin{minted}[xleftmargin=20pt,linenos]{cpp} #include <cstdio> #include <cstdlib> #include <iostream> using ...

0

In the meantime, I have myself found a simple workaround which makes sense in the overall context where my post came from. It is not in the strict sense an answer to my post because it involves wrapping the minted environment within a tikzpicture environment, but it works for me. I'll leave my "answer" unchecked for some time to see if somebody comes up with ...

Top 50 recent answers are included