title: KOMA-Script scrreprt: Section numbering and heading embodied into the first line of text

text: Using KOMA-Script package `scrreprt` I need to have the section numbering and heading included in the first paragraph of the section itself and the numbering of sections restarting from each chapter, i.e.: instead of **Chapter 1** **Rome** **1.1 The Magic Of Rome** Ibam forte via sacra............. **1.2 Modern Rome** Andavo per caso per la via sacra ....... **Chapter 2** **Milan** **2.1 Is Milan magic?** Ibam forte via sacra............. **2.2 Modern Milan** Andavo per caso per la via sacra ....... ===========:========== **_I would like to have:_** **Chapter 1** **Rome** **1.The magic of Rome.** Ibam forte via sacra............. **2.Modern Rome.** Andavo per caso per la via sacra ....... **Chapter 2** **Milan** **1.Is Milan magic.** Ibam forte via sacra............. **2.Modern Milan.** Andavo per caso per la via sacra ....... How can I obtain this result?


title: How to plot small function values in pgfplots?

text: I am trying to visualize two functions in pgfplots and I can't get my main message across that both end at the same point. How can I change this behaviour, preferably without additional external tools? Here is my small example:               \documentclass[tikz]{standalone}          \usepackage{tikz,pgfplots}     \pgfplotsset{compat=1.8}           \begin{document}          \begin{tikzpicture}     \begin{axis}[         xmin=0.0,         xmax=2,         ymin=0,         ymax=1.75,         axis x line=bottom,         axis y line=left,          xlabel=control parameter $r$,         ylabel=energy $(J)$,          ytick={}, yticklabels={},         xtick={1},         xticklabels={1},             restrict x to domain=0:2,         ]                 \addplot+[smooth,no marks, samples at={1.0,0.999,0.99,0.96,...,0.001,0}] {1.12*(1-x)^0.5};         \addplot+[smooth, densely dashed, no marks,samples=1000]{1.75*(1-x)^0.5};      \end{axis}      \end{tikzpicture}             \end{document}      With the following output: ![enter image description here](http://i.stack.imgur.com/xyuO6.png) Ideally both functions would end exactly at (1,0) but even with a high number of samples or explicitly giving the x value of 1.0 I can't get close. I tried using gnuplot alternatively but ran into the issue mentioned in Improve pfgplots precision with gnuplot, that pgfplots does not discard unbounded coordinates from gnuplot. For an exponent of exactly 1/2 the sqrt function yields better results but only works in this special case. Any ideas?


title: Character table on style files

text: What is the reason to insert the code below at the beginning of a style file? For example, the code below can be found on `lipsum.sty`.               %% \CharacterTable     %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z     %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z     %%   Digits        \0\1\2\3\4\5\6\7\8\9     %%   Exclamation   \!     Double quote  \"     Hash (number) \#     %%   Dollar        \$     Percent       \%     Ampersand     \&     %%   Acute accent  \'     Left paren    \(     Right paren   \)     %%   Asterisk      \*     Plus          \+     Comma         \,     %%   Minus         \-     Point         \.     Solidus       \/     %%   Colon         \:     Semicolon     \;     Less than     \<     %%   Equals        \=     Greater than  \>     Question mark \?     %%   Commercial at \@     Left bracket  \[     Backslash     \\     %%   Right bracket \]     Circumflex    \^     Underscore    \_     %%   Grave accent  \`     Left brace    \{     Vertical bar  \|     %%   Right brace   \}     Tilde         \~}     %%      What is it for?


title: What is the difference between \textcolor and \color?

text: I would like to define a new command to work as an alert command. If I want to alert some part of my text I would simply write `\alert{}`. But I want the result in red color. What is the best way to do this? I tried               \def\alert#1{{\color{red}{#1}}}      but I know that there is `\textcolor` also. I want my command to work both for text and math contents. What is the difference between them?


title: Spacing, subfigures and right captions (Creating a bar menu)

text: I am trying to create a bar menu for a student place I am part of. Now since we are studying CS, mathematics and or physics of course he have to use latex to create our barmenus or drinking lists. An example of a page is given below ![enter image description here](http://i.stack.imgur.com/yQTef.jpg) Now the question is how to make the process of creating the menu easier. At the moment I am using 'floatrow', to be able to use sidecaptions. What I want to achieve is to have some simple way to write in drinkrecipies and images. The menu should have these features.   * Left aligned recipies, (Not right as in the image).   * The blue spacing should be at least 0.5 cm on each side.    * The red spacing should be as large as possible.   * The green spacing should be small, but not zero.    * The ability to have text written in boxes beneath the images.    * The figures should be aligned vertically  Like shown in the image above =) If I try to change my MWE to avoid the `\raggedright` of the text, every spacing is inconsistent. **I used the floatrow package, but any answer does not need to use this!**               \documentclass[12pt,a4paper]{article}          \usepackage[landscape,                     left=0.1cm,             right=1cm,             top=1cm,             bottom=0cm]{geometry}     \usepackage{microtype,lmodern,fixltx2e}      % Småfikser og typografiske forbedringer     \usepackage{amsfonts,mathtools}               % Matematikk.     \usepackage[utf8]{inputenc}                  % Norske symboler æ,ø,å     \usepackage[norsk]{babel}                    % Norsk innholdsfortegnelse, og overskrifter          \usepackage{caption,subcaption}     \usepackage{floatrow}          \captionsetup[subfigure]{font = large,labelformat=brace,format=hang,justification=rightlast}     \floatsetup[figure]{style=plain}     \floatsetup[subfigure]{heightadjust=all,framearound=all,capbesideposition={left,center},capbesidesep=none}          \newcommand\rightlast{\leftskip0ptplus1fil     \rightskip0ptplus-1fil\parfillskip0ptplus1fil}     \DeclareCaptionJustification{rightlast}{\rightlast}          \begin{document}     \centering          \thisfloatsetup{capposition=beside,capbesideposition={left,center},     capbesidewidth=5cm}      %     \section*{\LARGE $\mathbb{R}$ealfagskjelleren - Barkart - Side 1}     %     \vspace*{0.5cm}     %     \begin{figure}[H]     \ffigbox         {\begin{subfloatrow}             \fcapside[\FBwidth+2cm]{\caption*{%             \textbf{\Large Sure Føtter} \\                       Cointreau:  2 cl  \\                   Jägermeister:  2 cl  \\                           Lime:  2 cl  \\                       Coca Cola:\phantom{   2 cl} \\                                        \\                           Pris: 35 kr}               }{\includegraphics[scale=0.33]{SureFotter.jpg}}             \fcapside[\FBwidth+2cm]{\caption*{%             \textbf{\Large Kvit Russer}\\                          Vodka:  2 cl  \\                 Kahlua/Amarula:  2 cl  \\                          Fløte:  2 cl  \\                                         \\                           Pris: 35 kr}              }{\includegraphics[scale=0.125]{WhiteRussian.jpg}}                  \fcapside[\FBwidth+2cm]{\caption*{             \textbf{\Large Crocodile}\\                      Lys Rom:  2 cl  \\                       Midori:  2 cl  \\                         Lime:\phantom{   2 cl} \\                       Sprite:\phantom{   2 cl} \\                                      \\                           Pris: 35 kr}                   }{\includegraphics[scale=0.33]{Crocodile2.jpg}}         \end{subfloatrow}                 \renewlengthtocommand\settowidth\Mylen{100000\subfloatrowsep}\vskip\Mylen              \begin{subfloatrow}             \fcapside[\FBwidth+2cm]{{\caption*{             \textbf{\Large Silver Salute}\\                      Vodka:  1 cl  \\                  Cointreau:  2 cl  \\                   Blå Bols:  3 cl  \\                                      \\                           Pris: 40 kr}               }}{\includegraphics[scale=0.85]{SilverSalute2.jpg}}             \fcapside[\FBwidth+2cm]{\caption*{             \textbf{\Large Majoren}\\               Captain Morgan:  2 cl  \\                 Jägermeister:  2 cl  \\                    Ingefærøl:\phantom{   2 cl} \\                       Sitron:\phantom{   2 cl} \\                                      \\                           Pris: 35 kr}                   }{\includegraphics[scale=0.35]{Major3.jpg}}             \fcapside[\FBwidth+2cm]{\caption*{             \textbf{\Large EPIC}    \\                    Baccardi:  2 cl  \\                    Blå bols:  1 cl  \\                 Mickey Finn:  1 cl  \\                      Passoã:  1 cl  \\                       Sprite:\phantom{   2 cl} \\                                      \\                           Pris: 40 kr}                       }{\includegraphics[scale=0.15]{EPIC3.jpg}\hspace*{10cm}}%         \end{subfloatrow}}          \end{figure}     \end{document}      Like I said, I have no idea how to get consistent spacings using the floatrow package. But if the menu can be created easier using another package, and offer consistent spacing I am all for that =) The floatrow-package have too many options. The images used   * [1,1] - http://i.stack.imgur.com/07f76.jpg   * [1,2] - http://i.stack.imgur.com/rfiAk.jpg   * [1,3] - http://i.stack.imgur.com/5pw0u.jpg   * [2,1] - http://i.stack.imgur.com/zVpMd.jpg   * [2,2] - http://i.stack.imgur.com/31bJc.jpg   * [2,3] - http://i.stack.imgur.com/WX87q.jpg


title: LaTeX split long table in multiple pages and resize the width

text: I am trying to find a way to fix the width of my table to the margin of a portrait page (not landscape) while continuing the table in another page since it is very long. I can adjust the width by using resizebox (I found this better than adjustbox because I wanted to keep the caption and labels of the table as it is in other smaller tables I have), but I don't know how to continue in to another page. Using just the code below cuts the rest of the table in length since my table is also long. I am looking for a way to fit the width of the table automatically, but also have the table continue in a different page (for example using 'longtable' with resizebox?). My question is similar to this one Resize longtable to width of landscape page but I do not want a landscape. Thank you very much for your help!               \documentclass[a4paper,12pt]{article}     \usepackage{longtable}     \usepackage{pdflscape}     \usepackage{graphicx}          \begin{document}               \begin{table}[ht]     \small  % Switch from 12pt to 11pt; otherwise, table won't fit     \setlength\LTleft{0pt}            % default: \parindent     \setlength\LTright{0pt}           % default: \fill     \begin{longtable}{llllllllll}       \hline\hline %inserts double horizontal lines        category & level & type & num1 & num2 & num3 & \multicolumn{2}{c}{$S1$} & \multicolumn{2}{c}{$S2$} \\ [0.5ex]          \hline % inserts single horizontal line      &  &  &  &  &  & PP3 & PP4 & PP3 & PP4 \\     E1 & 7E-54 & S2 & NA & NA & NA & NA & NA & NA & NA \\     E2 & 4E-8 & S1 & 1 & 25428038:25828097 & 10023824146 & 9 & 91 & 50 & 50 \\      &  &  & 1 & 25456834:25856893 & 10025905748 & 0.129 & 2.26 & 0.133 & 0.23 \\     &  & S & 1 & 25428038:25828097 & 10023824146 & 8.9 & 91.1 & 49.7 & 50.3 \\      &  &  & 1 & 25456834:25856893 & 10025905748 & 0.129 & 2.22 & 0.133 & 0.226 \\     E3 & 4E-8 & S2 & 1 & 25488669:25888728 & 10025910500 & 12 & 88 & 57.7 & 42.2 \\      &  & S & 1 & 25488669:25888728 & 10025910500 & 13.2 & 86.8 & 60.5 & 39.5 \\     E4 & 2E-145 & S1 & 1 & 25626305:26026364 & 10023820955 & 1.04 & 99 & 10.3 & 89.7 \\      &  &  & 1 & 25624780:26024839 & 10025907287 & 1.92 & 98 & 16.9 & 82.5 \\      &  &  & 1 & 25625807:26025866 & 10025935784 & 2.45 & 97.5 & 20.7 & 79.3 \\      &  & S2 & 1 & 25626305:26026364 & 10023820955 & 1.09 & 98.9 & 10.6 & 89.4 \\      &  &  & 1 & 25624780:26024839 & 10025907287 & 1.92 & 98 & 16.9 & 82.5 \\      &  &  & 1 & 25625807:26025866 & 10025935784 & 3.29 & 96.7 & 25.9 & 74.1 \\     E5 & 1E-13 & S2 & 1 & 62870388:63270447 & 10023831002 & 9.39 & 90.6 & 51.1 & 48.9 \\      &  & S3 & 1 & 62870388:63270447 & 10023831002 & 9.47 & 90.5 & 51.3 & 48.7 \\      &  & S4 & 1 & 62870388:63270447 & 10023831002 & 7.64 & 92.4 & 45.5 & 54.5 \\     E6 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E7 & 5E-94 & S1 & 1 & 109618271:110018330 & 10025913212 & 0.159 & 99.8 & 2.43 & 97.6 \\      &  & S2 & 1 & 109618271:110018330 & 10025913212 & 0.189 & 99.8 & 2.72 & 97.3 \\     E8 & 9.00E-17 & S1 & 1 & 109744528:110144587 & 10025910902 & 0.702 & 99.3 & 7.38 & 92.6 \\     E8 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E9 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E10 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E11 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E12 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E13 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E14 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     E15 & 1E-22 & S2 & 1 & 62849818:63249877 & 10023825945 & 5.44 & 94.6 & 36.9 & 63.1 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.5 & 1.79 & 1.54 \\      &  & S3 & 1 & 62849818:63249877 & 10023825945 & 4.63 & 95.4 & 33.1 & 66.9 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.56 & 13.8 & 1.79 & 1.58 \\      &  & S2 & 1 & 62849818:63249877 & 10023825945 & 5.54 & 94.5 & 37.3 & 62.7 \\      &  &  & 1 & 62720869:63120928 & 10023851197 & 1.55 & 14.3 & 1.79 & 1.64 \\     \hline     \end{longtable}           \begin{flushleft}This is the captio of my table          \end{flushleft}           \label{tab:label}       \end{table}          \end{document}


title: Center equation ignoring condition/remark

text: Really basic question, probably already answered but couldn't find anything. I have this code:               \documentclass[a4paper]{scrreprt}     \usepackage{fontspec}     \usepackage{amsmath}          \begin{document}          \begin{equation*}       x_j = 1,\quad y_j = 2,\quad z_j = 3 \qquad \text{for }j=1, 2, 3, \dots, n     \end{equation*}          \end{document}      What I get is this: ![enter image description here](http://i.stack.imgur.com/kvyxg.png) But I want something like this (the "for j"-part should be ignored when the equation is centered): ![enter image description here](http://i.stack.imgur.com/1iZ3e.png) Probably it would look better, if the "for j"-part is aligned to the right margin, unfortunately I don't know how to do that, too.


title: Using autoref with my own label to my own new environment

text: I defined my own environment. Now I want to refer to my environment with autoref. But autoref should refer with my own defined name. But I don't know how to do this. Could someone help me? My code looks like this:               \documentclass[a4paper,12pt]{scrreprt}     \usepackage[latin1]{inputenc}     \usepackage[ngerman]{babel}     \usepackage[framemethod=tikz]{mdframed} %Boxen mit Seitenumbruch     \usepackage{tikz}     \usetikzlibrary{shadows}     \usepackage{hyperref}      %     %     \newmdenv[tikzsetting={fill=blue!10},roundcorner=10pt,innerbottommargin=15pt, shadow=true,shadowsize=6pt,shadowcolor=gray,linewidth=8pt,needspace=50pt ]{myshadowbox}     %     %     \newenvironment{mybox}[1]{\begin{myshadowbox}\textbf{#1}}{\end{myshadowbox}}     %     %     \begin{document}     \section{Section1}     \begin{mybox}{TestBOX}\label{lablel1}     TEST     \end{mybox}          \section{Section1}     Test     \autoref{lablel1}          \end{document}


title: pgfplots and linear regression with semilogyaxis

text: I would like to add a linear regression line to my plot. The MWE is:               \begin{document}          \pgfplotstableread{     Year  ICumCDP     2008  3.73E-07     2009  3.35E-07     2010  2.01E-07     2011  3.88E-07     2012  1.36E-06     }{\tableICumCDP}     \pgfplotstablecreatecol[linear regression={ymode=log}, x=Year, y=ICumCDP]{regression}{\tableICumCDP}     \xdef\slope{\pgfplotstableregressiona}     % save the slope parameter     \xdef\intercept{\pgfplotstableregressionb} % save the intercept parameter          \begin{tikzpicture}       \begin{semilogyaxis}[         /pgf/number format/.cd,         use comma,         1000 sep={},         log basis y = 10,         ylabel = {ICumCDP},         ymin = 1E-8,         ymax = 1E-4,         yminorgrids = true,         xlabel = {Year},         xtick = {2008,2009,2010,2011,2012}     ]         \addplot [only marks, color=blue, x=Year, y=ICumCDP] table {\tableICumCDP};         \addplot [no markers, color=red, domain=2008:2012] {exp(x*\slope + \intercept)};       \end{semilogyaxis}     \end{tikzpicture}\\     \end{document}      The printed regression line is not correct: ![Picture](http://i.stack.imgur.com/1L2X7.png) My code is an modification of How to expand linear regression fit to the full x-axis range while using semilogyaxis I have asked the same question in a german forum, but nobody could help me till now.


title: Figure one next to the other and hook to equation's points

text: I would like to connect two figures like the following![enter image description here](http://i.stack.imgur.com/3YMZ5.png). The code that I've already have is:               \documentclass{article}     \usepackage[english]{babel}     \usepackage{ucs}      \usepackage[utf8x]{inputenc}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{tikz}     \usepackage{tkz-tab}     \usepackage{cancel}     \usepackage{forest}     \usepackage{caption}     \usepackage{latexsym}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage{paralist}     \usepackage{pst-tree,array}     \usepackage{enumerate}     \usepackage{graphicx}     \usepackage{subcaption}     \usepackage{epstopdf}     \usepackage{rotating}     \usepackage[usenames,dvipsnames]{xcolor}          \usetikzlibrary{arrows}     \usetikzlibrary{intersections}               \begin{document}               \begin{tikzpicture}[scale=.6,>=latex,font=\footnotesize,domain=0:7]     \draw[thick, -] (4.5,3.5)--(7,8) node[above right]{$S$};      \draw[dashed] (4.5,3.5)--(0,3.5) node[left]{$P_{\min}$};       \draw[very thick, <->](0,8)node[left]{$P$}--(0,0)--(8,0)node[below]{$Q$};          \begin{scope}[yshift=10cm,domain=1:7]            %AVC       \draw[thick,yscale=.6,name path global=avc] plot (\x,{.2*\x^2-1.8*\x+6})         node[right]{$AVC$};            %MC       \draw[red,thick,yscale=.6,name path global=mc] plot (\x,{.6*\x^2-3.6*\x+6})         node[right]{$MC$};       \draw[very thick, <->](0,8)node[left]{$C$}--(0,0)--(8,0)node[below]{$Q$};     \end{scope}            \draw[name intersections={of=mc and avc, by=mypoint},dashed](mypoint)--(mypoint|-0,0) node[below]{$Q_{\min}$};               \end{tikzpicture}     \end{document}      What I would like is to place one figure next to the other. How could I add the hook so as to show where the supply curve comes from and how the arrow at the point where AVC=MC?


title: TikZ `positioning`: Extra white space between arrow and node

text: Using `positioning` `TikZ` library, I am getting spurious white space between the arrow and the tikz node as shown in the figure below. It works fine with simple rectangles. **MWE:**               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{positioning}          \begin{document}       \begin{tikzpicture}         \node[rectangle,draw](node1){Node 1};          \node[rectangle,draw,below=of node1](node2){Node 2};          \node[below=of node2](tikzpic){%           \begin{tikzpicture}[scale=0.5]               \draw [step=0.25cm,lightgray,very thin] (0,0) grid (2.5,1.5);               \draw [->,ultra thick] (0,0.0) -- (0,1.5);               \draw [->,ultra thick] (0,0.0) -- (2.5,0);               \draw [fill=blue!7,ultra thick] (0.2,0) ..controls               (0.5,2.2) and (1.5,0.3) .. (2,0);             \end{tikzpicture}         };           \draw[->,ultra thick] (node1) -- (node2);         \draw[->,ultra thick] (node2) -- (tikzpic);       \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/hdrWl.png)


title: bibliographic requirements

text: The user guide for Springer journal author's instructions states the following: > Please always give a `\label` where possible and use `\ref` for cross- > referencing. The `\cite` and `\bibitem` mechanism for bibliographic > references is also obligatory.    What does this mean?   Please also advise me how best to proceed as I have over a hundred reference items. I figure from Mendeley I can export the `.bib` file and use it in LaTeX (via LyX). Will "BIBtex generated bibliography" work fine, especially w.r.t. the above requirements?


title: Arabic text with Polyglossia

text: I use Arabxetex and Polyglossia from Texlive 2013 on an OpenSuse 13.1 system to write Arabic. The Arabic text needs to be fully vocalized. There are no Problems writing unvocalized Text, but adding a vocal sign breaks the connection between consonants: the words come out as a series of disjointed Arabic letters in their isolated letter form. Has anyone else had similar problems? I don't know how to solve the problem.


title: why does something disappear in the aligned environment?

text: I noticed a strange behaviour with the aligned environment:               \begin{equation}\label{eq:direct_limit}     \begin{aligned}     [x] + [y] & := [\eta_{ik}(x) + \eta_{jk}(y)],\\     [x] \cdot r & := [x \cdot r].     \end{aligned}      \end{equation}      If I compile this, the first "[x]" in the equation is missing. Does anybody know why?


title: ASCII characters used in plaintext representation of TeX

text: I'm writing a parser/transformer thingie that accepts valid LaTeX, and emits valid LaTeX. Is there a list of ASCII characters that are allowed in TeX math mode? Or is any character fair game? Obviously, I know at least *, +, /,\, -, _, ^, <, >, !, ~ and the alphabet and numbers are allowed. Is there an online reference for this? Searching for TeX syntax or TeX symbols is not helpful.


title: Create a cover for my thesis

text: I woould like to make a cover for my thesis with latex. It should look like the following, which I mane with MS Word: ![enter image description here](http://i.stack.imgur.com/10pM3.png) I only know the commands:               \title{...}     \author{...}     \date{...}      But don't know how to get my thing... Can somobody help me with that?


title: Is it possible to externalize and/or reuse tikz pictures when used as backgrounds for the page?

text: My experiments with externalisation have run into trouble. One issue is that it seems that I cannot externalise a `tikz` picture used as a page background:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{external,positioning}     \tikzexternalize     \begin{document}         \begin{tikzpicture}[remember picture, overlay]             \draw [blue] (current page.north west) -- (current page.south east);         \end{tikzpicture}     \end{document}      This fails, I think, because the position is not correct until the second run but with externalisation, `tikz` never recompiles the code and so the faulty positioning never gets corrected. I know there are ways of working around this by compiling the picture independently and then setting it as background wallpaper, for example. What I would like to know is if it is possible to do this using externalisation so that I don't have to think about separate files. (This project already includes many files and it is already hard to keep track of them.) Alternatively, is it possible to _reuse_ a `tikz` picture _within_ a single compilation run? I notice that if I `\input` a `tikz` picture multiple times, it seems to get compiled multiple times. If there were a way of avoiding that, it would definitely help even though it would only work for a certain proportion of the pictures I'm using.


title: Does anyone know a good XeTeX tutorial?

text: I want to use XeTeX so that I can use a particular font, but I'm not quite sure about the documentation/commands in specifying this font in XeTeX. Can anyone point me to a good how-to tutorial on XeTeX?


title: Effects of removing chapter field from bibliographic entry

text: I have two questions, I am using Bibtex and Harvard style for my bibliography, everything works really good except from two things,               @InBook{Intro2,     author = {Yong, J.},     title = {Recent Developments in Mathematical Finance},     chapter = {19},     publisher = {World Scientific},     year = {2002},     }      If for the above example I want to remove the chapter because I have taken other parts from the book, Latex does not let me, I have an error saying that I have to insert chapter. Secondly,               @Article{Ph2,     author = {Fackrell, M.},     title = {Modelling healthcare systems with phase-type distributions},     journal = {Volume 12, Number 1, Pages 11-26},     year = {2009},     }      for the above example I am using an article and in my paper I do not have italics for the title of the article but for the journal as shown below: M. Fackrell. Modelling healthcare systems with phase-type distributions. _Volume 12, Number 1, Pages 11-26, 2009._


title: How to correctly align bibitems

text: I am using the `thebibliography` environment. In addition I use custom labels, which are different in length. How do I align my `bibitems` correctly, so that all bib entries vertically start at the maximum width of the longest label? Pretty much I want the 'normal' `biblatex` behavior, but with the `thebibliography` environment. I can't use `biblatex` in this case.


title: Ordered page numbering between arabic and roman numerals

text: I am writing a report, and I want the introduction, contents pages (everything before chapter 1) to be numbered in roman numerals, the main body to be arabic numerals, and then the appendices and bibliography to also be numbered in roman numerals. The first few pages is what I want, but if I use the command \pagenumbering{arabic} at the start of my first chapter, it starts numbering again at 1, whereas it should really start at 5. In addition, I then use the command \pagenumbering{rom} at the beginning of the appendices, and it again starts at I, instead of LXV (65). Is there any way to change this? Thanks J


title: Editing TeXnicCenter source code for {align}

text: Is there a simple way to change the TeXnicCenter source code so that the equation array button pops out:-                \begin{align*}      \end{align*}      instead of                \begin{align}      \end{align}      Only I find I supress more equation numbers than I include by far, in my assignments.


title: How use LaTeX counters to label knitr code chunks?

text: Imagine one has the LaTeX environments Example and Solution defined from the theorem environment. I have several Examples in numerous child documents which make up a book. LaTeX will automagically track the chapter and Example, Solution, Figure, etc number for a labeled Example, Solution, Figure, etc., respectively. Suppose the first code chunk below corresponds to the 6th Example in Chapter 4 of a book. Then \ref{SetSeed} will return the number 4.6 when using \documentclass{book}. I would like to be able to provide names to my code chunks that will stay in synchronization with the labels of my different LaTeX environments (Example, Solution, Figure, etc.). What I do not want to do is hard code my code chunks with 'Example 4.6', etc. Any suggestions would be most welcome. I am aware of the code chunk options Yihui has for figure captions and labels but would be willing to do an "old style" code chunk surrounded with a \begin{figure}, \end{figure} environment if the code chunks can be named appropriately. The thought is that the named code chunk might be generated with something like               <<paste(Solution,'\ref{SetSeed}', sep=" "), echo = TRUE>>=    ...(which does not work)       to generate the named chunk 'Solution 4.6'. The rationale is to be able to later purl() the master document to produce labeled code chunks from the individual chapters that correspond to the environments (Figure, Example, Solution, etc.) displayed in the book. Thanks in advance, Alan.               \begin{Example} \label{SetSeed}     Use the function \texttt{set.seed()} with a value of 13 and generate      20 values from a normal distribution with a mean of 100 and a standard      deviation of 15.  Find the mean of the randomly generated values.     \end{Example}          \begin{Solution}       <<paste(Solution,'\ref{SetSeed}', sep=" "), echo = TRUE>>=     # some R code     set.seed(13)     xs <- rnorm(20, 100, 15)     @     The mean of the values generated in Example \ref{SetSeed} have a      mean of \Sexpr{mean(xs)}.     \end{Solution}


title: Koma script captionbeside topbeside alignment question

text: Code based on the example of scrguien 3.12 (2013-12-19) page 122 gives bad result. Code:               \documentclass[captions=topbeside]{scrbook}     \usepackage[english]{babel}     \begin{document}     \begin{figure}     \begin{captionbeside}         {A figure description which is neither above nor below, but top beside the figure}     \rule{6cm}{8cm}     \end{captionbeside}     \end{figure}     \end{document}      And the pdflatex result: ![enter image description here](http://i.stack.imgur.com/0G24i.jpg) Part of compilation output:               > pdflatex topbeside01.tex     This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)      restricted \write18 enabled.     entering extended mode     (./topbeside01.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/koma-script/scrbook.cls     Document Class: scrbook 2013/12/19 v3.12 KOMA-Script document class (book)      Is this a bug or do I miss something?


title: What is the symbol “between” (≬) used for?

text: The `amssymb` package has a binary relation symbol named `\between`, which I have never come across. What is it used for?   I found out from a compiler error when I tried to define a symbol named that way myself, and I am now wondering whether it is a symbol I could use for my purpose. ![\\between](http://i.stack.imgur.com/Dos3K.png)


title: using Lyx template problem

text: I am using lyx with one of the springer template called svjour3, I have a problem here, with that template, as i wanna use two columns except the abstract part, meaning that i want putting the abstract part as a single column ? within the titles and etc help please thanks


title: Error when trying to typeset resistances in circuitkz

text: I get an error called `\ProcessOptions\relax`. I don't have any idea what could it be. I guess that maybe `spanish` `babel` gives problems.               \documentclass[letterpaper,11pt]{article}     \usepackage[latin1]{inputenc}     \usepackage[spanish]{babel}     \usepackage{amsmath,amsfonts,amsthm,amssymb}     \usepackage{epsfig,graphicx}     \usepackage{mathrsfs}     \spanishdecimal{.}     \usepackage{wrapfig}     \usepackage{tikz}     \usepackage[symbols]{circuitikz}               \begin{document}     \begin{figure}[h]     \centering     \begin{circuitikz} \draw      (0,0) node[anchor=east]{B}       to[short, o-*] (1,0)       to[R, l=$20\ohm$, *-*] (1,2)       to [R, v=$v_x$, l=$10\ohm$] (3,2)       to[short] (4,2) to[cI, i=$$, *-*] (4,0)        to[short] (3,0) to[R, l=$5\ohm$, *-*] (3,2)      (3,0) -- (1,0)      (1,2) to[short, *-o] (0,2)       node[anchor=east]{A}     ;\end{circuitikz}     \caption{Circuito}     \end{figure}     \end{document}      ![This is the error](http://i.stack.imgur.com/ifTSm.png)


title: How to change font family in footnote?

text: How can I change font family (and size) for footnotes? Would be great to see a small example.


title: How to shift error bars along with data bars?

text: I am trying to create a figure with two bar graphs with bars grouped two by two. I use `bar width` and `bar shift` to separate the bars. My problem is that I want to add error bars to these plots but I do not know how to make them _follow_ the bars. All I get are couples of bars (good!) but with couples of error bars between them (awkward!). How could I have the error bars in the middle of the _data_ bars without manually shifting them? My current attempt:               \documentclass{article}          \usepackage{pgfplots}     \usepackage{pgfplotstable}          \begin{document}              \begin{tikzpicture}              \pgfplotstableread{         1 4   0.2  0.1         2 4.2 0.1  0.5         3 3.1 0.3  0.4         4 2.5 0.25 0.35         }\tablei              \pgfplotstableread{         1 3.5 0.1  0.3         2 3.8 0.2  0.2         3 4.0 0.25 0.25         4 3.0 0.3  0.5         }\tablet              % Bar styles         \pgfplotsset{shifti/.style={mark=no markers, bar width=4pt, bar shift=3pt}}         \pgfplotsset{shiftt/.style={mark=no markers, bar width=4pt, bar shift=-3pt}}              % Error styles         \pgfplotsset{err/.style={forget plot, draw=none}}          \pgfplotsset{errp/.style={err, error bars/.cd,x dir=plus,  x explicit}}         \pgfplotsset{errm/.style={err, error bars/.cd,x dir=minus, x explicit}}              \begin{axis}[%         /pgfplots/table/header=false,         scale only axis,         width=12cm,         height=8cm,         axis on top]              \addplot+[xbar, shifti] table[x index=1, y index=0]{\tablei};         \addplot+[no markers, errm] table[x index=1, y index=0, x error index=2]{\tablei};         \addplot+[no markers, errp] table[x index=1, y index=0, x error index=3]{\tablei};              \addplot+[xbar, shiftt] table[x index=1, y index=0]{\tablet};         \addplot+[no markers, errm] table[x index=1, y index=0, x error index=2]{\tablet};         \addplot+[no markers, errp] table[x index=1, y index=0, x error index=3]{\tablet};              \end{axis}         \end{tikzpicture}          \end{document}


title: Natbib square brackets color

text: When using Bibtex w/ Natbib and square brackets, does anyone know how to change the color of the square brackets?


title: Tikz library `external` produces error if package `optional` is loaded?

text: I'm working on a large document which exceeded the memory capacity of TexLive 2011 so I tried to externalize the tikz images by using it's `external` library, as described in pgfmanual. I compiled using               pdflatex -shell-escape foo.tex      which resulted in an error like this: > ! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt- > on-e rror -interaction=batchmode -jobname "foo-figure0" "\def\tikzexternal > realjob{foo}\input{foo}"' did NOT result in a usable output file 'foo- > figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please v erify that you > have enabled system calls. For pdflatex, this is 'pdflatex -shel l-escape'. > Sometimes it is also named 'write 18' or something like that. Or may be the > command simply failed? Error messages can be found in 'ktikztemplate-fig > ure0.log'. If you continue now, I'll try to typeset the picture. I managed to narrow down the problem and came up with the following MWE which produces the same error:               \documentclass{article}     \usepackage{optional}      \usepackage{tikz}     \usetikzlibrary{external}     \tikzexternalize     \begin{document}       \begin{tikzpicture}         \draw(0,0)--(1,1);       \end{tikzpicture}     \end{document}      Comment out the `\usepackage{optional}` line and the error is gone. I could somewhat easily manage without that package, but it would be nice if there is some solution for this. I use TexLive 2011 on Ubuntu 11.10 (both freshly installed few day ago).


title: Local allocation of registers

text: I saw the following code in an issue of TUGboat (Volume 9, 1988, No. 3). I have modified it slightly. The motive was to avoid allocating registers globally. My questions are (1) How safe is it for use, given that they make local assignments? (2) Why use `\count19` as a limit instead of plain TeX's 255 (or thereabouts). Can we use eTeX's 32767 registers instead today?               \def\declarecount{\allocate0\count}     \def\declaredimen{\allocate1\dimen}     \def\declareskip{\allocate2\skip}     \def\declaremuskip{\allocate3\muskip}     \def\declarebox{\allocate4\char}     \def\declaretoks{\allocate5\toks}     \def\allocate#1#2#3{\relax       \advance\count1#1 by\@ne       \ifnum\count1#1<\count19\else % why not or 255 or 32767 (eTeX)?         \@latexerr{No room for a new \string#2!}\@ehd       \fi       \csname\expandafter\@gobble\string#2def\endcsname#3=\count1#1     }


title: Big Table in latex

text: Could you please helping me to draw a nice big tables like this one , I don't know how to mange the big table in LateX Many thanks ![enter image description here](http://i.stack.imgur.com/AWUp3.jpg)


title: Extra space in command created

text: Consider the following answer given by @egreg which can be found at http://tex.stackexchange.com/a/111043/10898 Why is an extra 6.799999pt space created when you issue a command like               \framecolorbox[\textwidth]{blue}{blue!40}{what do I do here?}      Does it have to do with the frame separation? A simple way out is to issue a command like               \framecolorbox[\dimexpr\textwidth-6.799999pt\relax]{blue}{blue!40}{what do I do here?}      but this seems too trivial as an answer.


How can I make two columns in two columns same as in the picture? ![](http://i.stack.imgur.com/tAmZ4.jpg)


title: How to put numbers in parenthesis in the S column using siunitx package

text: In the following minimal code, when I replace the `l` columns by `S` I get an error message saying               invalid-number!! Invalid numerical input '(4.36)'.!!     See the siunitx documentation for further information.!!      It goes on. It is important that I put the numbers in the third and fifth columns in parenthesis.               \documentclass{article}     \usepackage{booktabs}     \usepackage{ctable}     \usepackage{siunitx}     \usepackage{multirow}          \begin{document}     \ctable[          caption = {caption here},          label = {tab:tab1},          pos = {!ht},          center     ] {@{}lS@{\enskip}>{(}l<{)}S@{\enskip}>{(}l<{)}}{         \tnote[$\dagger$]{footnote here}     }{ \FL     \multirow{2}{*}{var} & \multicolumn{4}{c}{Title here} \\     \cmidrule{2-5}         & \multicolumn{2}{c}{[AA]} & \multicolumn{2}{c}{[BB]} \ML            $var_{12}$ & 1.37 & 4.36 & 1.50 & 8.91  \\     $var_{13}$ & 1.73 & 8.43 & 1.84 & 10.88      \LL}     \end{document}


title: listof (float package) mixes many differents floats (memoir)

text: As said, I have a problem when I create new float type with float. My preamble contains               \newfloat{protocol}{tHp}{lop}     \floatname{protocol}{Protocole}     \newfloat{fonction}{tHp}{lop}     \floatname{fonction}{Fonctionnalité}      Now, my document contains some protocols, and some "fonctions". But when I use the `\listof` command, a strange thing happens. If I use `\listof{fonction}{Liste des fonctionnalités}`, it will look like this: ![enter image description here](http://i.stack.imgur.com/ygFSk.png) Same thing happens if I use `\listof{protocol}{Liste des protocoles}`. I have no idea where to look at to correct that :/               \usepackage{latexsym,amssymb,amsmath,amsfonts,amscd,caption,color,amsthm,complexity,mathtools,float,enumitem,color,lettrine,pdfpages,hyperref,mathspec,framed,tocloft}


title: Tabular with Math symbols

text: I try to compile the following code and my latex doc shows an error.               \documentclass[a4paper]{article}          \usepackage[greek]{babel}     \usepackage[iso-8859-7]{inputenc}     \usepackage{ amssymb, amscd,mathrsfs,amsmath,amsthm}     \usepackage{graphicx}     \usepackage{pdfpages}     \usepackage{enumerate}     \usepackage{wrapfig}     \usepackage{amsfonts}     \usepackage{graphicx}     \usepackage{type1cm}     \usepackage{eso-pic}     \usepackage{color}     \usepackage{setspace}     \usepackage{hyperref}     \usepackage{lastpage}     \usepackage[lastpage,user]{zref}     \usepackage{fancyhdr}     \usepackage{subfig}     \usepackage{mnsymbol}     \usepackage{tikz,tkz-tab,amsmath}     \usepackage[framemethod=tikz]{mdframed}     \usepackage[table]{xcolor}          \usetikzlibrary{arrows}     \pagenumbering{arabic}     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \DeclareGraphicsExtensions{.pdf}     \DeclareMathSizes{10}{12}{10}{10}               \setlength{\arrayrulewidth}{1mm}     \setlength{\tabcolsep}{18pt}     \renewcommand{\arraystretch}{2.5}          \begin{document}                    {\rowcolors{3}{green!80!yellow!50}{green!70!yellow!40}     \begin{tabular}{ |p{3cm}|p{2cm}|p{2cm}| }     \hline     \multicolumn{2}{|c|}{Πίνακας Ολοκληρωμάτων} \\     \hline     Aπλές Συναρτήσεις& Σύνθεση  \\     \hline     $\int\limits\ 0\mathrm{d}x=c$ & AF  \\     $\int\limits\ 1\mathrm{d}x=x$ & AX    \\     $\int\limits \frac{1}{x}\mathrm{d}x=\ln|x|$ &AL  \\     $\int\limits x^a \mathrm{d}x=\frac{x^{a+1}}{a+1}$    &DZ  \\     $\int\limits \frac{1}{x^2}=-\frac{1}{x} \mathrm{d}x$ & AS  \\     $\int\limits \frac{1}{2\sqrt{x}}\mathrm{d}x=\sqrt{x}$ & AD    \\     $\int\limits \sigma\upsilon\nu x\mathrm{d}x=\eta\mu x$ & AO  \\     $\int\limits \eta\mu x\mathrm{d}x=-\sigma\upsilon\nu x$ &AL  \\     $\int\limits\frac{1}{\sigma\upsilon\nu^2 x} \mathrm{d}x=\epsilon\varphi x$   &DZ \\     $\int\limits \frac{1}{\eta\mu^2 x}\mathrm{d}x-\sigma\varphi x$ & AS \\     $\int\limits e^x\mathrm{d}x=e^x$ & AD   \\     $\int\limits a^x\mathrm{d}x=\frac{a^x}{\ln a}$ & AO  \\     \hline     \end{tabular}     }               \end{document}


title: How to change heading font style in memoir?

text: Please take a look at the image below. How do I change the heading font style? As you can see it wraps over in two lines because the chapter title is too long. I did read memoir manual but the only thing I found was `\makeheadrule` and I already used it to get the underline effect for the heading (`\makeheadrule{headings}{\textwidth}{0.3pt}`). I am not sure how to change it further to reduce the font size as it uses the built-in `headings` style. I couldn't figure out how to modify `headings` style. Any ideas? Also after I have changed the size, I'd like to reset it back for further chapters as they don't have that long chapter title. ![enter image description here](http://i.stack.imgur.com/HCJ7n.png)


title: how to put words in several lines in one cell?

text: The table is too wide, and I want to make it narrower by wrapping the `Second` under the `First`, how should I achieve this? The latex code looks like this currently:               \begin{table*}[htbp]                \centering       \caption{Add caption}         \begin{tabular}{c|ccccc}         \hline         \textbf{\#} & \textbf{Violations} & \textbf{First Second} & \textbf{First Second} & \textbf{First Second} & \textbf{First Second} \bigstrut\\         \hline         1   & 0   & 91  & 101 & 507 & 1973.54 \bigstrut[t]\\         2   & 0   & 102 & 92  & 472 & 1874.65 \\         3   & 0   & 104 & 92  & 459 & 1856.21 \\         4   & 0   & 108 & 100 & 407 & 1790.56 \\         5   & 0   & 112 & 77  & 511 & 1723.66 \\         $\ldots$   & $\ldots$  & $\ldots$  & $\ldots$   & $\ldots$   & $\ldots$ \\         \hline         \end{tabular}%       \label{tab:addlabel}%     \end{table*}%      ![enter image description here](http://i.stack.imgur.com/dRp7H.png)


title: Problem with TikZ and vertical alignment of text inside nodes

text: I have a problem in TikZ with the vertical alignment of text inside nodes. With a very minimal example like this:               \usetikzlibrary{arrows,positioning,shapes.geometric}          \begin{tikzpicture}[%       ->,       thick, shorten >=1pt,       >=latex,       node distance=7mm,       noname/.style={%         rectangle, rounded corners=9pt,         text width=11em,         text centered,         minimum height=3em,         draw=black!50,fill=black!20       }     ]          \node[noname] (configload) {Loads config};     \node[noname] (varsdec) [right=of configload] {New variables};          \path (configload) edge node {} (varsdec);          \end{tikzpicture}      I get this diagram: ![simple diagram generated](http://i.stack.imgur.com/mZ3d4.png) which has the text wrongly aligned because of the letter `g` in the first box. It can be seen better if we cut this diagram, showing only text: ![only text](http://i.stack.imgur.com/QRF3S.png) Which is the parameter I have to set in order to align the text correctly?


title: How do I write $\sim$ approximately with the correct spacing using siunitx?

text: This question is similar to this one, only that I'm using the siunitx package:               \documentclass{minimal}     \usepackage{siunitx}     \begin{document}     The temperature is \SI{\sim 200}{\kelvin}. \\     The temperature is \SI{{\sim} 200}{\kelvin}. \\     The temperature is \SI{{\sim}200}{\kelvin}. \\     The temperature is $\sim$\SI{200}{\kelvin}.     \end{document}      The last line leads to the result I want. It is however not very elegant in my oppinion. Is there a way to tell the si package that I don't want a space before my value?


title: How do I read data from one cell of a table and print its content in text?

text: > **Possible Duplicate:**   >  Formatting complex table from CSV using datatool I have a list of hundred names with an associated ID number, name, contact info, and more... Is it possible, knowing the associated ID number, to just print a fixed format. By example, I want to type               \command{10}      So it prints `"Text, text <i>name</i>, more text, blah for: <i>contact info</i> blah blah"` Is that possible? I was thinking to add the data manually in a `.txt` document or an Excel file type. (if there's another possibility, I'm willing to try it).


title: Common, per-section numbering of theorems, lemmas etc.

text: I use `amsthm` for my theorems, lemmas etc. I'd like their numbering to look like that:               Theorem 1.1.1     Lemma 1.1.2     Definition 1.1.3     Theorem 1.2.1     Definition 1.2.2     Corollary 1.2.3     Theorem 2.1.1     etc.      To make the numbering "per-section" I did               \newtheorem{defi}{Definition}[section]      But then each theorem type I defined had its own counter. So I tried               \newtheorem{defi}[somecounter]{Definition}      But then the numbers are just plain, section part disappears! So I'd like to write something like               \newcounter{somecounter}[section]     \newtheorem{defi}[somecounter]{Definition}[section]      But this doesn't work :( How can I achieve such effect?


title: chemfig: align multiple reactions

text: How can I align multiple reactions to the reaction arrow using `chemfig`? In the MWE, I want to align the two reactions to the arrow.               \documentclass{minimal}     \usepackage{chemfig}          \begin{document}          \chemfig{Cl}\chemsign+\chemfig{O_3}     \chemrel{->}     \chemfig{ClO}\chemsign+\chemfig{O_2}          \chemfig{ClO}\chemsign+\chemfig{O}     \chemrel{->}     \chemfig{Cl}\chemsign+\chemfig{O_2}          \end{document}      ![enter image description here](http://i.stack.imgur.com/kXTVd.png)


title: how to attach a footnote to the 'Notes' which is the head of my endnotes, generated by the endnotes package?

text: When I make endnotes at the end of my document by the 'endnotes' package, it gives a 'Notes' as the heading of the endnote section. Now I need to attach a footnote to that word, how can I achieve that?


title: Office Word and LaTeX spacing

text: I set the single space in Word and LaTeX. But apparently LaTeX is more dense than Word. (Using 11 font in Word, using `/singlespacing` in LaTeX). It seems like three lines of LaTeX is only equal to 2 lines of Word. Something like that. What's the correlation for spacing between Word and LaTeX? What if I want to set single space in LaTeX as the effect in Word? **Updated:** I checked wikibook, http://en.wikibooks.org/wiki/LaTeX/Text_Formatting#Font_Styles it seems that LaTeX's normalsize font is little bit smaller than 11pt, and large font is a little bit larger than 11pt. What can I do?


title: Why can't I use Chinese in MiKTeX

text: This is my source code of a LaTeX file, I use the package `CJK` in the editor WinEdt, and MiKTeX, but the display result is bad, it cannot display Chinese characters.               \documentclass[12pt]{article}     \usepackage{CJK}     \title{Test}     \author{zhulongsheng(11291065@bjtu.edu.cn)}     \date{2014/01/28}     \begin{document}     \maketitle     \begin{CJK*}{GBK}{song}     \today     \section{第一}     这是第一段     \CJKfamily{hei}     \section{第二}     这是第二段     \subsection{Goal}     这是     \LaTeX     \end{CJK*}     \end{document}


title: How to input Chinese characters to LaTeX

text: > **Possible Duplicate:**   >  How does one type Chinese in LaTeX? I am a Chinese college student and I want to write a resume with LaTeX; I have searched the Internet, I have heard a package called `moderncv` but my problem is I can not write Chinese font. Can someone give me some help?


title: Aligning bmatrix-matrices next to each other?

text: I have this code:               \[         \begin{bmatrix}         Pagerank&Sidnummer\\         0.068945&2\\         0.068945&3\\         0.076517&1\\         0.076517&4\\         0.11536&7\\         0.11536&8\\         0.11536&6\\         0.11536&5\\         0.14069&9\\         0.14069&12\\         0.16501&14\\         0.33015&13\\         0.33015&15\\         0.56601&10\\         0.56601&11\\         \end{bmatrix}     \]     \[         \begin{bmatrix}         Pagerank&Sidnummer\\         0.076517&1\\         0.068945&2\\         0.068945&3\\         0.076517&4\\         0.11536&5\\         0.11536&6\\         0.11536&7\\         0.11536&8\\         0.14069&9\\         0.56601&10\\         0.56601&11\\         0.14069&12\\         0.33015&13\\         0.16501&14\\         0.33015&15\\         \end{bmatrix}     \]      And individually the matrices are correct. But I don't like the way they display on the screen. The second matrix is placed beneath the first one. I want them to share the horizontal space and lay next to each other. Is this possible?


title: Applying van de Graaf's Canon (ninths-division) in ConTeXt

text: I'm sure this is an obvious question but after much tinkering all I've managed to do is confuse myself. I'm typesetting a book. The paper size is 5.5×8.5". I want to apply the canons of page construction to the book. If I calculate 1/9 of 5.5×8.5" I get a fundamental grid size of 0.611×0.944", which leads me to a text width of 6 × 0.611" = 3⅔" and a text height of 6 × 0.944" = 5⅔". To effect this, I need to set the backspace and topspace to one grid unit, so backspace = 0.611" and topspace = 0.944". The first thing that confuses me is that the text area should be 6 × 6 grid units, but the text area computed by the canon does _not_ include the headers and footers (is this correct?). The canon doesn't really tell you what to do about headers and footers. Assuming I pick some random size, what's the right way to configure `\setuplayout`? The document Help! The typesetting area is helpful, but I couldn't find the Metapost program mentioned which does the calculations for a given paper size. The paper mentions additionally that ConTeXt would soon provide default page setups based on ninths-division, but I don't know if that ever became true (the document is from 2004) or if it did, where they are and how to use them. Obviously if I can avoid hard-coding these things into my document by using pre-defined setups, or at least, calculations in my own document, it would be better. Thanks for your help!


title: What does the number indicate in .pfb-files?

text: I'm about to download the cm small caps package from CTAN. However there are quite a number of `sfsc*.pfb` files to choose from, where `*` refers to different numbers. I wonder what these numbers mean?


title: Need serious help with epslatex gnuplot terminal in beamer!

text: Well, I'm using this to generate my `graph.tex` and `graph.eps` files from `gnuplot`:               set terminal epslatex input color colortext size 11.6cm, 8.5cm solid linewidth 2      But when I use               \begin{center}     \begin{figure}[h]     \input{graph}     \end{figure}     \end{center}      the text is centered but the image is not (it is a little bit up and to the right). Here's what it produces ![What I'm getting](http://i.stack.imgur.com/6YlnA.png) I already tried changing the order of the `center` and `figure` environments and putting the `[htp]` option instead of just `[h]`. How can I fix this? Thanks for reading!


title: How to solve this bibliography error?

text: Here is my bibliography in latex. The types is "Inprooceedings". I use WinEdt.                 @INPROCEEDINGS{tem_1,       Author         = {Comelli, P, Ferragina, P, Granieri, M.N, and Stabile, F},       Title          = {Optical recognition of motor vehicle license plates},       Year           = {1995},       Volume         = {44},       Series         = {4),       Month          = {November},       Pages          = {790–799},       Publisher      = {Vehicular Technology, IEEE Transactions}        }      But i get this error. ![Error image in latex](http://i.stack.imgur.com/L7zj5.png) How to solve it?


title: biblatex for idiots

text: Is there a '`biblatex` in a nutshell' guide out there? I'd like if someone explained to me the essentials on how to use `biblatex` (what lines I have to write in my document, which files I have to have, how many times and what I have to compile), so then I can go to http://www.ctan.org/tex- archive/macros/latex/exptl/biblatex/doc/biblatex.pdf to customise it further.


title: Help with drawing a unit circle & lines

text: I would like to draw a unit circle with labelled coordinates of points on it as well as lines that intersect the circle like this: ![](http://i.stack.imgur.com/tLXKq.png) The code that I pasted below does part of the job. But I want   1. coordinates that are larger,   2. the lines, and   3. the slopes of the lines labelled, ideally without the lines intersecting the labels. I would greatly appreciate help. * * *               % Unit circle % Author: Supreme Aryal     % A unit circle with cosine and sine values for some     % common angles.          \documentclass[landscape]{article}     \usepackage{tikz} %%%<     \usepackage{verbatim}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{5pt}% %%%>          \begin{comment} :Title: Unit circle          A unit circle with cosine and sine values for some common angles.          \end{comment}          \usepackage[top=1in,bottom=1in,right=1in,left=1in]{geometry} \begin{document}         \begin{tikzpicture}[scale=5.3,cap=round,>=latex]             % draw the coordinates             \draw[->] (-1.5cm,0cm) -- (1.5cm,0cm) node[right,fill=white] {$x$};             \draw[->] (0cm,-1.5cm) -- (0cm,1.5cm) node[above,fill=white] {$y$};                  % draw the unit circle             \draw[thick] (0cm,0cm) circle(1cm);                  \foreach \x in {0,30,...,360} {                     % lines from center to point                     % dots at each point                     \filldraw[black] (\x:1cm) circle(0.4pt);                     % draw each angle in degrees             }                       \foreach \x/\xtext/\y in {                 % the coordinates for the first quadrant                 30/\frac{\sqrt{3}}{2}/\frac{1}{2},                 45/\frac{\sqrt{2}}{2}/\frac{\sqrt{2}}{2},                 60/\frac{1}{2}/\frac{\sqrt{3}}{2},                 % the coordinates for the second quadrant                 150/-\frac{\sqrt{3}}{2}/\frac{1}{2},                 135/-\frac{\sqrt{2}}{2}/\frac{\sqrt{2}}{2},                 120/-\frac{1}{2}/\frac{\sqrt{3}}{2},                 % the coordinates for the third quadrant                 210/-\frac{\sqrt{3}}{2}/-\frac{1}{2},                 225/-\frac{\sqrt{2}}{2}/-\frac{\sqrt{2}}{2},                 240/-\frac{1}{2}/-\frac{\sqrt{3}}{2},                 % the coordinates for the fourth quadrant                 330/\frac{\sqrt{3}}{2}/-\frac{1}{2},                 315/\frac{\sqrt{2}}{2}/-\frac{\sqrt{2}}{2},                 300/\frac{1}{2}/-\frac{\sqrt{3}}{2}}                     \draw (\x:1.45cm) node[fill=white] {$\left(\xtext,\y\right)$};                  % draw the horizontal and vertical coordinates             % the placement is better this way             \draw (-1.25cm,0cm) node[above=1pt] {$(-1,0)$}                   (1.25cm,0cm)  node[above=1pt] {$(1,0)$}                   (0cm,-1.25cm) node[fill=white] {$(0,-1)$}                   (0cm,1.25cm)  node[fill=white] {$(0,1)$};         \end{tikzpicture} \end{document}


title: Tweaking of Biblatex style to show emphasized species name

text: Using the `Biblatex` style from here and tweaking some other things I had some success but not for this thing in bibliography; I have a repeated species name, which is `Helicobacter pylori`, how to write a code to recognize this word, and may be some other words as well, so that Biblatext can write them in emphasized text once found in the .bib file? P.S. That word `Helicobacter pylori` can appear in different forms in titles of references, they all should be emphasized as they are species names, as following:   * `Helicobacter pylori`   * `Helicobacter`   * `H. pylori`   * `H.pylori`, i.e., space in between is sometimes omitted   * `Helicobacteraceae`, though rarely **Code:**               \documentclass[oneside]{scrbook}      \usepackage[none]{hyphenat}%     %=====================Language, Fonts============================       \usepackage[ngerman,english]{babel}      \selectlanguage{english}     \usepackage{courier,mathptmx,amsmath,amsfonts,amssymb} %     \usepackage[utf8]{inputenc} %      \usepackage[T1]{fontenc} %     \usepackage{cmbright}     %=====================Referencing============================     \usepackage{xcolor} %     \usepackage{hyperref} %     \definecolor{dark-red}{rgb}{0.4,0.15,0.15}     \definecolor{dark-blue}{rgb}{0.15,0.15,0.4}     \definecolor{medium-blue}{rgb}{0,0,0.5}     \hypersetup{         colorlinks, linkcolor={dark-red},         citecolor={dark-blue}, urlcolor={medium-blue} %url can be magenta          }     \usepackage{filecontents} % to provide file     \begin{filecontents}{\jobname.bib}     @book{kennedy_pcr_2011,         title = {{PCR} Troubleshooting and Optimization: The Essential Guide},         isbn = {9781904455721},         shorttitle = {{PCR} Troubleshooting and Optimization},         language = {en},         pagetotal = {245},         publisher = {Horizon Scientific Press},         author = {Kennedy, Suzanne},         date = {2011-01-01},         keywords = {{PCR} troubleshooting, Polymerase Chain Reaction, {qPCR}, Science / Chemistry / General, Science / Life Sciences / Genetics \& Genomics}     }     @article{akira_role_2000,         title = {The role of {IL-18} in innate immunity},         volume = {12},         issn = {0952-7915},         url = {http://www.ncbi.nlm.nih.gov/pubmed/10679398},         issue = {1},         pages = {59-63},         journaltitle = {Current Opinion in Immunology},         shortjournal = {Curr Opin Immunol},         author = {Akira, S},         urldate = {2011-09-06},         date = {Feb 2000},         note = {{PMID:} 10679398},         keywords = {Animals, Immunity, Innate, Interferon-gamma, Interleukin-1, Interleukin-12, Interleukin-18, Interleukin-18 Receptor alpha Subunit, Killer Cells, Natural, Mice, Models, Immunological, Receptors, Interleukin, Receptors, Interleukin-18, Signal Transduction, Th1 Cells}     }     @article{vignali_il-12_2012,         title = {{IL-12} family cytokines: immunological playmakers},         volume = {13},         rights = {© 2012 Nature Publishing Group, a division of Macmillan Publishers Limited. All Rights Reserved.},         issn = {1529-2908},         url = {http://www.nature.com/ni/journal/v13/n8/full/ni.2366.html},         doi = {10.1038/ni.2366},         shorttitle = {{IL-12} family cytokines},         language = {en},         issue = {8},         pages = {722-728},         journaltitle = {Nature Immunology},         shortjournal = {Nat Immunol},         author = {Vignali, Dario A. A. and Kuchroo, Vijay K.},         urldate = {2012-11-20},         date = {2012},         keywords = {{IL-12} family, key reference, language, review},         file = {Vignali und Kuchroo - 2012 - IL-12 family cytokines immunological playmakers.pdf:D:\Documents\Zotero_Backup\storage\4WZFHV46\Vignali und Kuchroo - 2012 - IL-12 family cytokines immunological playmakers.pdf:application/pdf}     }     @software{matthias_kohl_slqpcr:_2007,         title = {{SLqPCR:} Functions for analysis of real-time quantitative {PCR} data at {SIRS-Lab} {GmbH.} R package, {SIRS-Lab} {GmbH.} Jena.},         author = {{Matthias Kohl}},         date = {2007},         note = {www.sirs-lab.com}     }          @article{lu_duodenal_2005-1,         title = {Duodenal ulcer promoting gene of Helicobacter pylori},         volume = {128},         issn = {0016-5085},         url = {http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3130061/},         issue = {4},         pages = {833-848},         journaltitle = {Gastroenterology},         shortjournal = {Gastroenterology},         author = {{LU}, {HONG} and {HSU}, {PING–I} and {GRAHAM}, {DAVID} Y. and {YAMAOKA}, {YOSHIO}},         urldate = {2012-12-19},         date = {2005-4},         note = {{PMID:} 15825067     {PMCID:} {PMC3130061}},         keywords = {{dupA}, first reference, H.pylori, {IL-8}, key reference, virulence},         file = {LU et al. - 2005 - Duodenal Ulcer Promoting Gene of Helicobacter pylo.pdf:D:\Documents\Zotero_Backup\storage\TDCZTC4F\LU et al. - 2005 - Duodenal Ulcer Promoting Gene of Helicobacter pylo.pdf:application/pdf}     }          \end{filecontents}          \usepackage[backend=biber,style=chem-acs,sorting=none,isbn=false,doi=false]{biblatex}      \addbibresource{\jobname.bib} % extension must be written     \ExecuteBibliographyOptions{%       citetracker=true,% Citation tracker enabled in order not to repeat citations, and have two lists.       sorting=none,% Don't sort, just print in the order of citation       alldates=long,% Long dates, so we can tweak them at will afterwards       dateabbrev=false,% Remove abbreviations in dates, for same reason as ``alldates=long''       articletitle=true,% To have article titles in full bibliography       maxcitenames=999% Number of names before replacing with et al. Here, everyone.       }          % No brackets around the number of each bibliography entry     \DeclareFieldFormat{labelnumberwidth}{#1\addperiod}          % Suppress article title, doi, url, etc. in citations     \AtEveryCitekey{%       \ifentrytype{article}         {\clearfield{title}}         {}%       \clearfield{doi}%       \clearfield{url}%       \clearlist{publisher}%       \clearlist{location}%       \clearfield{note}%     }          % Print year instead of date, when available; make use of urldate     \DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}     \renewbibmacro*{date}{% Based on date bib macro from chem-acs.bbx       \iffieldundef{year}         {\ifentrytype{online}            {\printtext[urldate]{\printurldate}}            {\printtext[date]{\printdate}}}         {\printfield[date]{year}}}          % Remove period from titles     \DeclareFieldFormat*{title}{#1}     % Make year bold for @book types     \DeclareFieldFormat[book]{date}{\textbf{#1}} % doctorate added this line     % Embed doi and url in titles, when available     \renewbibmacro*{title}{% Based on title bib macro from biblatex.def       \ifboolexpr{ test {\iffieldundef{title}}                    and test {\iffieldundef{subtitle}} }         {}         {\ifboolexpr{ test {\ifhyperref}                       and not test {\iffieldundef{doi}} }            {\href{http://dx.doi.org/\thefield{doi}}               {\printtext[title]{%                  \printfield[titlecase]{title}%                  \setunit{\subtitlepunct}%                  \printfield[titlecase]{subtitle}}}}            {\ifboolexpr{ test {\ifhyperref}                          and not test {\iffieldundef{url}} }              {\href{\thefield{url}}                 {\printtext[title]{%                    \printfield[titlecase]{title}%                    \setunit{\subtitlepunct}%                    \printfield[titlecase]{subtitle}}}}              {\printtext[title]{%                 \printfield[titlecase]{title}%                 \setunit{\subtitlepunct}%                 \printfield[titlecase]{subtitle}}}}%          \newunit}%       \printfield{titleaddon}%       \clearfield{doi}%       \clearfield{url}%       \clearlist{language}% doctorate added this       \clearfield{note}% doctorate added this       \ifentrytype{article}% Delimit article and journal titles with a period         {\adddot}         {}}          \begin{document}     The book reference  is here~\parencite{kennedy_pcr_2011}. This article has a bold year in the bibliographye~\parencite{vignali_il-12_2012}, whereas this one not~\parencite{akira_role_2000}. This article also with no year shown~\parencite{lu_duodenal_2005-1}, but has species name called ``\textit{Helicobacter pylori}'' that I want to be emphasized as it should be. If it is possible also to make the author name lower case, otherwise I have to hack this from within the Biblatex translator of Zotero citation manager. I am using TexStudio as \LaTeX{} IDE, while you may use a different one, but that should'nt be a problem anyway.How about using  \verb|multicite| commands of the \verb|Biblatex| neat package by citing all of the above \parencites{see,}{akira_role_2000, kennedy_pcr_2011, vignali_il-12_2012, lu_duodenal_2005-1}. Did you notice that the prenote ``see'' was bold, how to change that to normal?      \printbibliography[title={References}] % change from bibliography to references     \end{document}      **Result after typsetting:** ![enter image description here](http://i.stack.imgur.com/D0LaA.png) ![enter image description here](http://i.stack.imgur.com/8HVyp.png)


title: Tikz: Scale coordinates perhaps using the calc package

text: I've drawn a rectangle like this:               \draw[color=orange, fill=orange, opacity=0.1] (Q3term1) rectangle (Q3term2);      and essentially, what I want is to do is stretch the rectangle by 10% horizontally and stretch is vertically by 5%, so something like:               \draw[color=orange, fill=orange, opacity=0.1] ($(1.1,1.05)*(Q3term1)$) rectangle ($(0.9,0.95)*(Q3term1)$);      If there is a way to do it without the calc library, that'd be good too. Thanks.


title: How to temporarily disable PDF bookmarking ?

text: I'm forced to use a third-party document class that somewhat messes up the bookmarking done by `hyperref` (and the `bookmark` package): a spurious bookmark appears for 'author' (so I guess the package implements 'author' using a sectioning macro). Therefore, I would like to be able to disable bookmarking temporarily, in my case before the `\maketitle` command, and reenable it afterwards. Is this possible using `hyperref`, or the `bookmark` package. (I'm currently using the latter to partly overcome the problem, using `\bookmarksetup{startatroot}`.)


title: Adjusting a block diagram

text: I created a block diagram but I don't know how to adjust some of the distances.               \documentclass[tikz, convert = false]{standalone}          \usepackage[utf8]{inputenx}%  http://ctan.org/pkg/inputenx     % Euler for math | Palatino for rm | Helvetica for ss | Courier for tt     \renewcommand{\rmdefault}{ppl}% rm     \linespread{1.05}% Palatino needs more leading     \usepackage[scaled]{helvet}% ss //  http://ctan.org/pkg/helvet     \usepackage{courier}% tt // http://ctan.org/pkg/courier     \usepackage{eulervm}  %  http://ctan.org/pkg/eulervm     % a better implementation of the euler package (not in gwTeX)     \normalfont%     \usepackage[T1]{fontenc}%  http://ctan.org/pkg/fontenc     \usepackage{textcomp}%  http://ctan.org/pkg/textcomp          \usetikzlibrary{shapes, arrows}          \begin{document}     \tikzstyle{block} = [draw, rectangle, minimum height = 2em, minimum width = 3em]     \tikzstyle{sum} = [draw, circle, node distance = 1.25cm]     \tikzstyle{input} = [coordinate]     \tikzstyle{output} = [coordinate]          \begin{tikzpicture}[auto, node distance = 2cm]       \node[input, name = input] {};       \node[sum, right of = input] (sum) {};       \node[sum, right of = sum] (s2) {};       \node[block, right of = s2, font = \scriptsize] (G) {$\frac{K}{Js + a}$};       \node[block, right of = G, font = \scriptsize] (H) {$\frac{1}{s}$};       \node[block, below of = G, font = \scriptsize] (F) {$K_f$};            \draw[-latex] (G) -- node[name = u] {} (H);       \draw[-latex] (u) |- (F);       \draw[-latex] (F) -| node[pos = 0.99] {$-$} node[pos = 1.105] {$+$} (s2);            \node[output, right of = H] (Y) {};            \draw[-latex] (input) -- node[font = \scriptsize] {$X$} (sum);       \draw[-latex] (sum) -- (s2);       \draw[-latex] (s2) -- (G);            \coordinate[below of = F, name = empty] {};             \draw[-latex] (H) -- node[name = Y, font = \scriptsize] {$Y$} (Y);       \draw (Y) |- (empty);       \draw[-latex] (empty) -| node[pos = 0.99] {$-$} node[pos = 1.05] {$+$} (sum);     \end{tikzpicture}     \end{document}      The code above produces ![enter image description here](http://i.stack.imgur.com/ChMW6.png)   1. I would like to decrease the distance between the feedback loop and K_f since there is a lot of wasted space.   2. How can I center block G between s2 and H?


title: How to continue the framed text box on multiple pages?

text: I am using `framed` package to create text boxes using `begin{framed}` and `end{framed}`. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end of the first page and begin anew on the second page (i.e. it appears as one text box and not two)... Is there a way to disappear the lines which are at the end of the first page's box and the top of the second page box? Example: the same framed box on two pages, but appearing as two separate boxes!! ![enter image description here](http://i.stack.imgur.com/GmutT.png)


title: Latex text quality + font in a drawing tool

text: I use CorelDraw on a Windows platform and would like to get the latex PDF-text quality + font in a certain drawing. What is the best approach?   * print the text as pdf via latex first and then copy-paste part of a screenprint?   * I installed Latin Modern Roman fonts for Windows that are "equal" to latex fonts but there is a big difference visisble, especially after zooming in, the latex fonts are perfectly sharp, the other fonts become fuzzy bitmaps.   * other possibilities? EDIT: I made the error to not select the `commercial printing' option, when exporting the drawing for desktop applications. The use of latin modern fonts now gives a better result. It looks somewhat more gray, but it is acceptable.


title: chapter number and title in one row

text: I need to add both the chapter number and the title in one row with centering: something like "Chapter 2 Title of Chapter". My code is               \documentclass[12pt,a4paper,oneside]{report}          \usepackage[left=1.5in,top=1in,right=1in,bottom=5em]{geometry}          \begin{document}          \chapter{INTRODUCTION}          \section{ sec1}          ....................          \subsection{subsec1}          ..................          \end{document}      What do I need to do?


title: Errors when running texmaker

text: I just downloaded texmaker, and when I try to "Quick Build" a template, I receive either of the following error messages:               ! LaTeX Error: File `revtex4.cls' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: cls)Enter file name:! Emergency stop.<read > \usepackage! LaTeX      ! ==> Fatal error occurred, no output PDF file produced!      Or               ! LaTeX Error: File `framed.sty' not found.Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage      ! ==> Fatal error occurred, no output PDF file produced! I'm new to this and have no idea what to do.


title: Creating a particular environment with a left-side rule

text: I don't have much experience in creating environments, and my understanding of them allows me to create environments which do something at the beginning and at the end (like for instance, in a "proof" environment, I can begin it with "Proof." and end it with a little square in the bottom right. What I want to do now is slighty more complicated (so it seems to me), I just want something looking like               Proof.     |     |     | content here     |     |     | end of proof      I want those vertical dashes to be a straight line from bottom to top. Any way I could be able to do that?


title: Lettrine: Put a letter lowercase in Lyx

text: I use Lyx 2.1, document class : report. I inserts a "lettrine", the letter that follows in uppercase, I want this letter to be lowercase. ![enter image description here](http://i.stack.imgur.com/1Odqh.png) Code :               \begin{onehalfspace}     \lettrine{F} ace


title: 2-cells in xy-pic annoying problem

text: The following part of my code does not compile               \usepackage[all,2cell]{xy}     \begin{document}     \UseTwocells     \xymatrix     {     B &        {}   & {} &    C\llltwocell}     \end{document}      The funny thing is that:               \usepackage[all,2cell]{xy}     \begin{document}     \UseTwocells     \xymatrix     {     B &        {}   & {} &    C\lltwocell}     \end{document}      compile very well. As you can see the difference is the number of l-letters preceding "twocell" command Can you please tell me how can I fix it?


title: Creating an organization chart and flowchart in Lyx

text: I use Lyx 2.1, document class : report. I want to make these two schemes with Lyx : 1-organization chart : ![enter image description here](http://i.stack.imgur.com/iJDpz.jpg) 2- flowchart : ![enter image description here](http://i.stack.imgur.com/JiYxg.png)


title: Indenting text in \tabfill (tabbing environment)

text: I am not an expert in LaTeX. Thus, the question may sound trivial. I am using the tabbing environment, and I have long lines to wrap. Thus, I am using the `\tabfill` command in order to do so.               \newcommand\tabfill[1]{%\dimen@\linewidth%     \advance\dimen@\@totalleftmargin%     \advance\dimen@-\dimen\@curtab%     \parbox[t]\dimen@{#1\ifhmode\strut\fi}%     % or, to avoid stretching:     % \parbox[t]\dimen@{\raggedright #1\ifhmode\strut\fi}%     }      The only problem that I have with this command is that the text inside the `\tabfill` box is aligned to the left margin. I would like that when this text is wrapped (since it is inside a tabbing environment) it is also indented in the rows following the first. Any idea about how to modify this tabfill command in order to achieve this goal? Or any other solution? Example of what I am looking for:               Column 1                Column 2     bla bla                 bla bla bla bla bla bla bla bla bla bla bla bla                             bla bla bla bla     bla bla                 bla bla      Code (generating no indent):               \begin{tabbing}     \hspace{3.1cm} \= \kill     Column 1 \> Column 2\\     bla bla \> \tabfill{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla}\\     bla bla \> \tabfill{bla bla}     \end{tabbing}      Does it make sense?


title: How do I write in Armenian inside a math expression?

text: I have this code which I compile with xelatex.               \documentclass[a4paper]{article}     \usepackage{polyglossia}     \newfontfamily{\armenianfont}{DejaVu Serif}     \setmainlanguage{armenian}          \begin{document}     հայերեն english     $հայերեն english հայերեն$     \end{document}      The Armenian words inside `$$` do not appear in the resulting PDF file. How do I correct this?


title: Extra blank page while designing front cover with tikz

text: I’m trying to design the front cover of a book with `tikz` package. The following is my latex code:               \documentclass[b5paper,11pt]{article}     \usepackage{geometry}     \usepackage{tikz}     \begin{document}     \newgeometry{top=0pt,bottom=0pt,left=0pt,right=0pt}     \thispagestyle{empty}     \setlength\parindent{0pt}     \begin{tikzpicture}[color=white,line width=.1em,font=\fontsize{90}{90}\selectfont]     \filldraw[color=blue] (0,0) rectangle (\paperwidth,\paperheight);     \draw (.05\paperwidth,0) -- (.05\paperwidth,\paperheight);     \draw (0,.1\paperheight) -- (.05\paperwidth,.1\paperheight);     \draw (0,.3\paperheight) -- (.05\paperwidth,.3\paperheight);     \draw (0,.5\paperheight) -- (.05\paperwidth,.5\paperheight);     \draw (0,.7\paperheight) -- (.05\paperwidth,.7\paperheight);     \draw (0,.9\paperheight) -- (.05\paperwidth,.9\paperheight);     \node[draw,align=center] at (.8\paperwidth,.5\paperheight) {B\\O\\O\\K};     \end{tikzpicture}     \end{document}      But after compiling the latex code, except the front cover, I get a extra blank page before it. What is the problem with it?


title: ordinalnum & roman small-capitals numbers

text: I'm using `ordinalnum` command many times in a big command, this is very helpful. I would have like my ordinal number in small caps & `romannumeral` according french norm of typography for centuries notation. Of course, impossible to put the first command in the second & vice versa. My minimal configuration :               % !TEX encoding = UTF-8 Unicode     % !TEX TS-program = arara     \documentclass{scrbook}     \usepackage[frenchb]{babel}      \usepackage[quiet]{fontspec}                         \usepackage[automark,headsepline]{scrpage2}              \usepackage[babel,french=guillemets*]{csquotes}     \usepackage[french]{fmtcount}          % \setmainfont[Mapping=tex-text, Ligatures={Common, Rare}, Numbers={OldStyle}]{Adobe Garamond Pro}     \addtokomafont{disposition}{\normalfont}     \newcommand{\RNum}[1]{\textsc{\expandafter{\romannumeral #1\relax}}}          \begin{document}     \ordinalnum{1} siècle,  \ordinalnum{21} siècle.\\     \RNum{1}\up{er} siècle, \RNum{21}\up{eme} siècle.     \end{document}     % arara: xelatex      ![enter image description here](http://i.stack.imgur.com/T6w9K.png) Some idea to use `ordinalnum` command with entirety functionality (good suffix up etc.) & numbers in roman numbering & small-caps ? Thanks.


title: Can I use Writer2LaTeX and the `mla-paper` style together?

text: I use LibreOffice 4.1.3.x, and have had success using a patched version of Writer2LaTex with documents created in LibreOffice Writer. I want to create a (sub?)filter for Writer2LaTeX that allows me to designate fields in my ODT document that correspond to the header fields in Ryan Aycock's `mla-paper` style. Otherwise, the header I create will be superseded by the default `mla-paper` header. I want to be able to tag a MLA header like the one below1--one I create in LibreOffice Writer--so that it easily ports into `mla-paper`'s presets for the header.               Phillip H. Vollman                                                                 Vollman 1     Prof. Erika T. Lin     ENGH 426 001     30 March 2014                                      1 Henry IV Response Paper      The intended header in the exported .tex file based on the `mla-paper` style is as follows:               \begin{mla}{Phillip H.}{Vollman}{Prof. Erika T. Lin}{ENGH 426 001}{30 March 2014}{1 Henry IV     Response Paper}      How would I go about doing this? 1: _Shakespeare in Performance_ 's a great class...


title: Typsetting the Ponny

text: Today, once again, the ultimate [X]HTML parser using regular expressions answer came to my attention and I have decided to try to typset it using XeLaTeX. The result is far from perfect, worse even than Chrome's rendering. Is there a way I can improve the result? Is XeLaTeX and LuaLaTeX incapable of handling the Ponny? MWE:               \documentclass[]{article}     \usepackage{lmodern}     \usepackage{amssymb,amsmath}     \usepackage{ifxetex,ifluatex}     \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}     \IfFileExists{upquote.sty}{\usepackage{upquote}}{}     \IfFileExists{microtype.sty}{\usepackage{microtype}}{}     \usepackage[normalem]{ulem}     \setmainfont{Doulos SIL}          \title{html - RegEx match open tags except XHTML self-contained tags - Stack     Overflow}     \date{}     \author{StackOverflow}          \begin{document}     \maketitle          Rege̿̔̉x-based     HTML parsers are the cancer that is killing StackOverflow \emph{it is     too late it is too late we cannot be saved} the trangession of a chi͡ld     ensures regex will consume all living tissue (except for HTML which it     cannot, as previously prophesied) \emph{dear lord help us how can anyone     survive this scourge} using regex to parse HTML has doomed humanity to     an eternity of dread torture and security holes \emph{using rege}x as a     tool to process HTML establishes a brea\emph{ch between this world} and     the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but \emph{more     corrupt) a mere glimp}se of the world of reg\textbf{ex parsers for HTML     will ins}tantly transport a p\emph{rogrammer's consciousness i}nto a     w\emph{orl}d of ceaseless screaming, he comes\sout{, the pestilent     sl}ithy regex-infection wil\textbf{l devour your HT}ML parser,     application and existence for all time like Visual Basic only worse     \emph{he comes he com}es \emph{do not fi}ght h\textbf{e com̡e̶s, ̕h̵i}s     un̨ho͞ly radiańcé de\emph{stro҉ying all enli̍̈́̂̈́ghtenment, HTML tags     \textbf{lea͠ki̧n͘g fr̶ǫm ̡yo͟ur eye͢s̸ ̛l̕ike liq}uid p}ain, the song of re̸gular     expre\sout{ssion parsing} will exti\emph{nguish the voices of     mor\textbf{tal man from the sp}here I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is     beautiful t}he f\texttt{inal snuf}fing o\emph{f the lie\textbf{s of     Man ALL IS LOŚ͖̩͇̗̪̏̈́T A}}\textbf{LL IS L}OST th\emph{e pon̷y he come}s he     c̶̮om\sout{es he co}\textbf{\sout{me}s t\emph{he} ich}or permeat\emph{es     al}l MY FAC\emph{E MY FACE ᵒh god n\textbf{o NO NOO̼}}\textbf{OO N}Θ     stop t\emph{he an*̶̙̤͑̾̾̅ͫg͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨ}e̠̅s\texttt{ ͎a̧͈͖r̽̾̈́͒͑e} n\textbf{ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ T}O͇̹̺ͅƝ̴ȳ̳     TH̘\textbf{Ë͖́̉ ͠P̯͍̭O̚N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟O̮̪̝͍ͮM̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝}S̨̥̫͎̭ͯ̿̔̀ͅ          \end{document}      **UPDATE** Using the Doulos SIL font gets me something closer to what Firefox renders but still far from perfect.


title: Need space between footrule and footnote

text: I'm formatting a dissertation and need a small, vertical space after my footrule before the start of my first footnote, but no space between the footnotes which follow. I've tried the following command: `\renewcommand{\footnotesep}{3\baselineskip}` ... And had good success with the space between the footrule and the first footnote, but messed up my spacing between all other footnotes on the same page. Any suggestions? Thanks!


title: Expansion problems with pgfkeys

text: I'm using `pgfkeys`, and a fairly adventurous syntax in which the values for some keys contain additional key/value pairs. (For instance, the value of the `nodes` key is a list of pairs, and the second component of each pair is a key-value list.) I get a compilation error whenever I put anything too fancy into the `label` key. The code below works fine as-is, but if I replace `2+2` with `2+\sqrt{2}`, it breaks. I think it's a macro-expansion problem. How can I arrange it that the contents of the `label` key does _not_ get expanded until it needs to be? ## Code               \documentclass{article}     \usepackage{tikz}          \makeatletter          \pgfkeys{/wickerson/.cd,       % The following two lines are from:       % http://tex.stackexchange.com/q/85637/86       execute style/.style = {#1},       execute macro/.style = {execute style/.expand once=#1},       left/.code=            {\xdef\wickerson@left{#1}},       top/.code=             {\xdef\wickerson@top{#1}},       label/.code=           {\gdef\wickerson@label{#1}},       nodes/.code=           {\xdef\wickerson@nodes{#1}},       colour/.code=          {\xdef\wickerson@colour{#1}},     }          \newcommand\myDiagram[1][]{%       \pgfkeys{/wickerson/.cd,colour=black,nodes={},#1}       \node[text=\wickerson@colour] at (0,0) {My Diagram...};       \foreach \i/\values in \wickerson@nodes {         \pgfkeys{/wickerson/.cd,left=0,top=0,label={},%           execute macro=\values}         \node[shape=circle,draw=black]           at (\wickerson@left, \wickerson@top)            {\wickerson@label};       }     }          \makeatother          \begin{document}          \begin{tikzpicture}[x=1mm,y=-1mm]     \myDiagram[%        colour=red, %       nodes={%         a/{left=0,top=10,label={$2+2$}}, %         b/{left=15,top=10,label={$\log 4$}}%       }%     ]     \end{tikzpicture}          \end{document}      ## Output ![enter image description here](http://i.stack.imgur.com/Mc0Ts.png)


When using the distance style attribute on edges, for example,               \tikzstyle{flowloop} = [out=-150, in=-30, looseness=0.8, loop, distance=7*\limw]      or               \tikzstyle{flowloop} = [out=-150,in=-30,looseness=0.8,distance=9*\limw]      I get excessive whitespace around my edges. I've tried using clip and 'use as bounding box' to no avail. Any suggestions on how to remove it or not have it appear in the first place? I've had to resort to using the 'pdfcrop' bundled with TeXLive to get rid of it. See attached code and graphic to see what I mean. You'll notice that there's a loop's width of whitespace to the left and right of my two bottom loops.               \def\limw{0.050\textwidth}     \setlength{\tabcolsep}{1pt}     \renewcommand{\arraystretch}{0.3}     \def\bug{\includegraphics[width=\limw]{graphics/icons/kbugbuster}}     \def\suser{\includegraphics[width=\limw]{graphics/icons/system-users}}     \def\hat{\includegraphics[width=\limw]{graphics/icons/applications-engineering}}     \def\patch{\includegraphics[width=\limw]{graphics/icons/text-x-patch}}     \def\source{\includegraphics[width=\limw]{graphics/icons/text-x-objchdr}}     \def\debf{\includegraphics[width=\limw]{graphics/icons/application-x-deb}}     \def\litim{%       \bug       \hat       \suser       \patch       \source       }     \def\litimt{%       \begin{tabular}{c c}         \bug & \hat \\         \suser & \patch\\         \source &       \end{tabular}       }     \def\litimp{%       \begin{tabular}{c c}         \bug & \hat\\         \suser & \patch\\         \source & \debf       \end{tabular}       }     % Define a few styles and constants     \def\blockdist{8.0*\limw}     \def\logosize{3.2em}     \tikzstyle{projects} = [draw, fill=orange!30, text width=5em,         text centered, minimum height=\logosize+0.6em,         node distance=0.5*\blockdist and \blockdist]     \tikzstyle{ecosystem} = [projects, text width=6em, fill=blue!30,         minimum height=12em, rounded corners, draw=black,dashed,         node distance=\blockdist and \blockdist]     \tikzstyle{label} = [text width=6em, text centered,         node distance=0.1*\blockdist and 0.1*\blockdist]     %\tikzstyle{flowloop} = [out=-150, in=-30, looseness=0.8, loop, distance=7*\limw]     \tikzstyle{flowloop} = [out=-150, in=-30,looseness=0.8,distance=9*\limw]%distance=8*\limw]     \pgfdeclarelayer{background2}     \pgfdeclarelayer{background1}     \pgfdeclarelayer{foreground}     \pgfsetlayers{background2,background1,main,foreground}          \begin{tikzpicture}         \node (debian) [projects] {\includegraphics[height=\logosize]{graphics/logos/DebianLogo}};         \node (derivs) [projects, node distance=5*\limw, below=of debian] {Debian derivatives};         \node (decos label) [label,below=of derivs] {Debian ecosystem};              \node (kde) [projects, above=of debian]           {\includegraphics[height=\logosize]{graphics/logos/KDELogo}};         \node(gcc) [projects, right=of kde]           {\includegraphics[height=\logosize]{graphics/logos/GCCLogo}};         \path ($ (kde)!.5!(gcc) $) node (upstr label) [label] {Upstream projects};              \node (fedora) [projects, right=of debian]           {\includegraphics[height=\logosize]{graphics/logos/FedoraLogo}};         \node (OpenBSD) [projects, right=of derivs]           {\includegraphics[height=\logosize]{graphics/logos/GentooLogo}};         \node (oecos label) [label,below=of OpenBSD] {Other ecosystems};              \begin{pgfonlayer}{background1}           \node (oecos) [ecosystem, fit={(fedora) (OpenBSD) (oecos label)}] {};           \node (decos) [ecosystem, fit={(decos label) (debian) (derivs)}] { };         \end{pgfonlayer}              \path ($ (oecos.south)!.5!(decos.south) $)+(0,-3em) node [label] (FOSS label) {FOSS Ecosystem};              \begin{pgfonlayer}{background1}         \end{pgfonlayer}                   \begin{pgfonlayer}{background1}           \node (upstreams) [ecosystem,fit={(kde) (upstr label) (gcc)},minimum           height=4em] {};         \end{pgfonlayer}              \path [draw, <->] (debian) -- node {\litimp} (derivs);         \path [draw, <->] (decos.east) -- node[above] {\litim} (oecos.west);         \path [draw, <->] (decos.north |- upstreams.south) -- node {\litimt} (decos.north);         \path [draw, <->] (oecos.north |- upstreams.south) -- node {\litimt} (oecos.north);              \path [draw, ->] (decos.270) edge[flowloop]           node [pos=0.25] (lbugl) {\bug}           node [pos=0.35] {\hat}           node [pos=0.45] {\suser}           node [pos=0.55] (lpatch) {\patch}           node [pos=0.65] {\source}           node [pos=0.75] {\debf}           (decos.270);         \path [draw, ->] (oecos.270) edge[flowloop]           node [pos=0.25] {\bug}           node [pos=0.375] {\hat}           node [pos=0.50] {\suser}           node [pos=0.625] (lpatch) {\patch}           node [pos=0.75] (lsource) {\source}           (oecos.270);         \path [draw, ->] (upstreams.270) edge[flowloop]           node [pos=0.25] {\bug}           node [pos=0.375] {\hat}           node [pos=0.50] {\suser}           node [pos=0.625] {\patch}           node [pos=0.75] {\source}           (upstreams.270);              \begin{pgfonlayer}{background2}           \path[use as bounding box,clip] node (foss)           [ecosystem,fill=blue!50,fit=(oecos) (decos) (lpatch) (lbugl) (lsource)             (FOSS label) (upstreams)] {};         \end{pgfonlayer}         \clip (foss.north east) rectangle (foss.south west);     \end{tikzpicture}      See the following image to get an idea of the whitespace: ![Excess whitespace around edges with distance style attribute](http://i.stack.imgur.com/OJyhd.png)


title: Code listing stays empty

text: I'm trying to add code listings from an external file to a document I'm working on. Unfortunately, in the resulting PDF all I get is the caption and a rectangle with the right width and background color. But it does not have any content. I'm including my listings like this:               \lstset{language=[Objective]C, basicstyle=\footnotesize, showstringspaces=false, tabsize=2}     \lstinputlisting[label=lst:Animation, caption=foo]{Ressourcen/Animation.txt}      `lstset` is configured as follows:               \usepackage{listings}     \usepackage{xcolor}      \definecolor{hellgelb}{rgb}{1,1,0.9}     \definecolor{colKeys}{rgb}{0,0,1}     \definecolor{colIdentifier}{rgb}{0,0,0}     \definecolor{colComments}{rgb}{1,0,0}     \definecolor{colString}{rgb}{0,0.5,0}     \lstset{         float=hbp,         basicstyle=\ttfamily\color{black}\small\smaller,         identifierstyle=\color{colIdentifier},         keywordstyle=\color{colKeys},         stringstyle=\color{colString},         commentstyle=\color{colComments},         columns=flexible,         tabsize=2,         frame=single,         extendedchars=true,         showspaces=false,         showstringspaces=false,         numbers=left,         numberstyle=\tiny,         breaklines=true,         backgroundcolor=\color{hellgelb},         breakautoindent=true     }      Any idea what I'm doing wrong? **Update** _Minimal_ example:               \documentclass[         11pt, % Schriftgröﬂe         DIV10,          ngerman, % für Umlaute, Silbentrennung etc.         a4paper, % Papierformat         oneside, % einseitiges Dokument         titlepage, % es wird eine Titelseite verwendet         parskip=half, % Abstand zwischen Absätzen (halbe Zeile)         headings=normal, % Größe der Überschriften verkleinern         listof=totoc, % Verzeichnisse im Inhaltsverzeichnis aufführen         bibliography=totoc, % Literaturverzeichnis im Inhaltsverzeichnis aufführen         index=totoc, % Index im Inhaltsverzeichnis aufführen         captions=tableheading, % Beschriftung von Tabellen unterhalb ausgeben         draft % Status des Dokuments (final/draft)     ]{scrreprt}          \usepackage[ngerman]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepackage{listings}     \usepackage{xcolor}      \definecolor{hellgelb}{rgb}{1,1,0.9}     \definecolor{colKeys}{rgb}{0,0,1}     \definecolor{colIdentifier}{rgb}{0,0,0}     \definecolor{colComments}{rgb}{1,0,0}     \definecolor{colString}{rgb}{0,0.5,0}     \lstset{         float=hbp,         basicstyle=\ttfamily\color{black}\small\smaller,         identifierstyle=\color{colIdentifier},         keywordstyle=\color{colKeys},         stringstyle=\color{colString},         commentstyle=\color{colComments},         columns=flexible,         tabsize=2,         frame=single,         extendedchars=true,         showspaces=false,         showstringspaces=false,         numbers=left,         numberstyle=\tiny,         breaklines=true,         backgroundcolor=\color{hellgelb},         breakautoindent=true     }          \begin{document}          \lstset{language=[Objective]C, basicstyle=\footnotesize, showstringspaces=false, tabsize=2}             \lstinputlisting[label=lst:Animation, caption=foo]{Animation.txt}          \end{document}


title: page "x" may be too complex to print error

text: When I use the command `dvipdf dummy.dvi` to convert it from dvi to pdf, I get this error for some pages "x". Could anybody help me on this please?


title: How to fix a certain distance between a TikZ matrix border and its nodes?

text: I want to draw a TikZ matrix with its border and I would like to define the distance between most external matrix nodes and matrix border. Something like a `matrix inner sep`. If I change `inner sep` in matrix options declaration, all nodes inside the matrix also change its inner separation. I know how to do it with `fit` library. I just want to know if its possible without it.