title: Create a register of persons with references

text: To Create a register of persons with biblatex seems to be much more complicate then i expected. How can i create nice a register of persons semiautomatic with \ref? Lets assume i have 20 persons that should be mentioned in a document. The grouping and sorting is complicate to implement in LaTeX, but i could do that very easy by hand and LaTeX could manage links and backlinks for me. At the moment i use a solution like How do I include all authors of cited works in an index of persons?. It works but it can not handle the manual grouping and sorting. The final document with hyperlinks and backlinks should look like               The screwdriver was turned by \person[Mr.]{Miller}.      > >     Register of Persons >     =================== >     Prof. Dr. M. Miller, University of M (p. 4, 12) >     Dr. A. Foobar, University of M (p. 5) >   >     B. Foo, University of Z (p. 1) >


title: I think fractional expressions in my text is small and not normal?

text: \documentclass[12pt]{book}       \usepackage{amsmath,amsthm,amssymb,amsfonts}       \usepackage{xepersian}            \begin{document}       \begin{persian}       \lr{$-\frac{1}{3}$}       \hspace{1cm}       $-\frac{1}{3}$        \hspace{1cm}        \lr{1}       \end{persian}       \end{document}


title: Dynamically modify the content in \tablehead

text: I have a pretty simple LaTeX document:               \documentclass{article}     \usepackage{booktabs}     \usepackage{array}     \usepackage{fancyhdr}     \usepackage[us,12hr]{datetime}     \usepackage{lastpage}     \pagestyle{fancy}     \fancyhf{}     \setlength\headheight{0.5pt}     \chead{\textbf{\huge{Hello}}}     \lhead{\textbf{Left}}     \rhead{\textbf{Right}}     \rfoot{\today \hspace{0.5pt} \currenttime}     \cfoot{Page \thepage\ of \pageref{LastPage}}     \lfoot{Lower Left}          \renewcommand{\headrulewidth}{1pt}          \usepackage{supertabular}     \newcommand{\SpecialText}{Hello\ldots}     \newcommand{\testIt}{The value of \texttt{SpecialText} is : "\SpecialText''.}       \begin{document}     \tablehead     {     \toprule     & \multicolumn{1}{p{24.5mm}}{\textbf{Gross Volume}}     & \multicolumn{1}{p{21mm}}{\textbf{Net Volume}}     & \multicolumn{1}{p{12mm}}{\textbf{Level}}     & \multicolumn{1}{p{21mm}}{\textbf{Temperature}}     & \multicolumn{1}{p{16mm}}{\centering{\textbf{Ullage}}}     & \multicolumn{1}{p{42mm}}{\centering{\textbf{Last Updated}}}\\          & \multicolumn{1}{p{24.5mm}}{\centering{\textbf{Gallons}}}     & \multicolumn{1}{p{21mm}}{\centering{\textbf{Gallons}}}     & \multicolumn{1}{p{12mm}}{\textbf{inches}}     & \multicolumn{1}{p{21mm}}{\centering{\textbf{Farenheit}}}     & \multicolumn{1}{p{16mm}}{\centering{\textbf{Gallons}}} & \\     \toprule     \multicolumn{6}{l}{\testIt}\\\\     }          \begin{supertabular}{p{35mm}*{6}{r}}     \renewcommand{\SpecialText}{New Text\textit{was}\ldots}      \\ \multicolumn{7}{l}{\textbf {Set 1}}\\\\     \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\     Element 1& \multicolumn{6}{l}{(Disjoint)}\\     \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\     \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\      \toprule[2pt]\\     \end{supertabular}     \end{document}      I am trying to dynamically change the content on the `\tablehead`, so that at the beginning of each page the text is different. I tried `\renewcommand` but it did not work. Any help will be great. * * * In the following example, the article has been expanded to the second page. The heading remains the same, however the **_renew command_** is ignored, since on the second page, the upper right text should be changed from: The Value of SpecialText is: "Original Text". to: The Value of SpecialText is: "New Text". Any comments are welcome.               \documentclass{report}     \usepackage[letterpaper,top=2.0cm,bottom=2.0cm,left=0.5cm,right=0.5cm]{geometry}      \usepackage{booktabs}      \usepackage{array}      \usepackage{fancyhdr}      \usepackage[us,12hr]{datetime}      \usepackage{lastpage}      \pagestyle{fancy}      \fancyhf{}      \setlength\headheight{0.5pt}      \chead{\textbf{\huge{Hello}}}      \lhead{\textbf{Left}}      \rhead{\textbf{Right}}      \rfoot{\today \hspace{0.5pt} \currenttime}      \cfoot{Page \thepage\ of \pageref{LastPage}}      \lfoot{Lower Left}       \renewcommand{\headrulewidth}{1pt}       \usepackage{supertabular}      \newcommand{\SpecialText}{Original Text}      \newcommand{\testIt}{The value of \texttt{SpecialText} is : "\SpecialText''.}   \begin{document}      \tablehead      {      \toprule &      \multicolumn{1}{p{17mm}}{\textbf{Column 1}} &      \multicolumn{1}{p{17mm}}{\textbf{Column 2}} &      \multicolumn{1}{p{17mm}}{\textbf{Column 3}} &      \multicolumn{1}{p{17mm}}{\textbf{Column 4}} &      \multicolumn{1}{p{17mm}}{\centering{\textbf{Column 5}}} &      \multicolumn{1}{p{17mm}}{\centering{\textbf{Column 6}}}\\       & \multicolumn{1}{p{24.5mm}}{\centering{\textbf{Column 1}}} &      \multicolumn{1}{p{21mm}}{\centering{\textbf{Column 2}}} &      \multicolumn{1}{p{12mm}}{\textbf{Column 3}} &      \multicolumn{1}{p{21mm}}{\centering{\textbf{SubColumn 4}}} &      \multicolumn{1}{p{16mm}}{\centering{\textbf{SubColumn 5}}} & \\      \toprule      \multicolumn{6}{l}{\testIt}\\\\      }       \begin{supertabular}{p{35mm}*{6}{r}}      \renewcommand{\SpecialText}{New Text}     \\      \multicolumn{7}{l}{\textbf {Set 1}}\\\\      \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\      Element 1 & \multicolumn{6}{l}{(Disjoint)}\\      \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\      \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\       \\      \multicolumn{7}{l}{\textbf {Set 1}}\\\\      \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\      Element 1 & \multicolumn{6}{l}{(Disjoint)}\\      \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\      \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\       \\      \multicolumn{7}{l}{\textbf {Set 1}}\\\\      \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\      Element 1 & \multicolumn{6}{l}{(Disjoint)}\\      \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\      \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\     \\      \multicolumn{7}{l}{\textbf {Set 1}}\\\\      \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\      Element 1 & \multicolumn{6}{l}{(Disjoint)}\\      \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\      \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\       \\      \multicolumn{7}{l}{\textbf {Set 1}}\\\\      \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\      Element 1 & \multicolumn{6}{l}{(Disjoint)}\\      \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\      \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\       \\      \multicolumn{7}{l}{\textbf {Set 1}}\\\\      \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\      Element 1 & \multicolumn{6}{l}{(Disjoint)}\\      \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\      \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\       \\      \renewcommand{\SpecialText}{New Text}\\     \multicolumn{7}{l}{\textbf {Set 1}}\\\\      \textbf{Subset 1} & \multicolumn{6}{l}{Red}\\      Element 1 & \multicolumn{6}{l}{(Disjoint)}\\      \multicolumn{1}{r}{\textbf{Results}} & 3797.08 & 3780.49 & 38.85 & 66.21 & 5721.31 & 4/8/2012 9:00:21AM \\      \multicolumn{1}{r}{\textbf{State}} & 7.24 & & 0.54 & & & \\\\        \toprule[2pt]\\      \end{supertabular}      \end{document}


title: Using siunitx in captions?

text: I am using pdflatex(texlive 2011) to compile a document. Unfortunately it does not compile.               ! Undefined control sequence.     \metre ->\ERROR           l.69 ...feld  \num{6}{\metre} mal \num{6}{\metre}}      siunitx works for units in normal text, but using it in captions fails. Is this a bug or misconfiguration. Under texlive 2009 it compiles flawlessly. Here is my figure command               \documentclass{article}     \usepackage{siunitx}     \begin{document}     \begin{figure}       \caption{\num{6}{\metre}}     \end{figure}     \end{document}


title: Subtable inside a table / Adjusting table column width on the fly

text: I've been fiddling with the following table for a while, and have some minor issues.               \documentclass{article}     \usepackage{threeparttable}     \usepackage{multirow}     \begin{document}          \begin{table}[!ht]       \caption{       \textbf{Pheno file format}}       \begin{threeparttable}       \begin{tabular}{|l|l|c|}\hline\hline     \textbf{Pheno file headers} &   \multicolumn{2}{|c|}{\textbf{Notes}} \\ \hline\hline     sex                &   \multicolumn{2}{|l|}{The sex column is restricted to the following values.} \\ \hline\hline                        &   \multicolumn{1}{|l|}{Sex}    & \multicolumn{1}{p{1cm}|}{Value} \\ \hline\hline                        &   Male                         & \multicolumn{1}{p{1cm}|}{1}                               \\ \hline                        &   \multicolumn{1}{|l|}{Female} & \multicolumn{1}{p{1cm}|}{2}    \\ \hline                        &   \multicolumn{1}{|l|}{Missing}& \multicolumn{1}{|p{1cm}|}{-1}   \\ \hline     studyid            &   \multicolumn{2}{|l|}{\multirow{1}{*}{Description of the study the data belongs to - eg. 'Hapmap6.0'.}} \\                        &   \multicolumn{2}{|l|}{If studyid is not given, 'unknown' is used.} \\ \hline     studyid            &   \multicolumn{2}{p{\dimexpr\textwidth-2\tabcolsep\relax}|}{Description of the study the data belongs to - eg. 'Hapmap6.0'.                                            If studyid is not given, 'unknown' is used.} \\ \hline     %\cline{3-4}       \end{tabular}       \end{threeparttable}     \end{table}          \end{document}      Questions:   1. So, I'm sort of embedding a subtable inside a table. I first had it as a separate table, but then I stuck it inside the main table. It is the table with headers `Sex` and `Value`. It would be nice if I could adjust the width of the third margin so that it was only as wide as necessary, and also if all the lines to the left of that table, starting with the double line under `Sex/Value` were not present. The other problem is that the numbers in the third column are not left justified. So I'd like it to look something like > > > ----------------------------------------------------------------------------- >     | Pheno file headers  |                    Notes > | > > ============================================================================== >     | sex                 | The sex column is restricted to the following > values | > > ============================================================================== >                           | Sex    |  Value | >                           | Male   |    1   | >                           | Female |    2   | >                           | Missing|   -1   | > > ------------------------------------------------------------------------------ >     | Studyid             | Some stuff > | > > ------------------------------------------------------------------------------ >   Can this be done without lots of complexity?   2. I've got two examples of a cell (starting with studyid) across two rows and two columns. I think I prefer the one at the bottom. Is that the best way to do it? It certainly seems simpler than the one above it.


title: Scale image to page width?

text: I use               \inclugraphics[scale=TRYING TO GUESS THE NUMBER FOR PAGE WIDTH]{...}      but I find this errorsome, is there some ready flag to set the image to page width? I usually use PNG and JPG photos.


title: Numbering Theorems/Definitions together, by section and without section symbol

text: I am fairly new to LaTeX and I am looking for a particular style: I want to number my theorems/propositions/corollaries/definitions together and by section. For example, Definition 1.1, Theorem 1.2, Corollary 1.3, Theorem 1.4 etc. for results that are all in the first section. However, I would like to use the `$\S$` symbol in the section heading, eg: ![enter image description here](http://i.stack.imgur.com/91B2e.png) But this means that I get Theorems and Propositions which include the `$\S$` symbol: ![enter image description here](http://i.stack.imgur.com/w2t6F.png) Which obviously, looks awful. Can anybody explain to me how I might get what I want? Thanks in advance


title: Cannot get Skim to open on C-x C-v

text: I have been trying to get Skim to start from emacs. I always get no "matching viewer found". Here are the settings of my .emacs and I am sure something is wrong here, but cannot figure it out. Any help appreciated. Thanks               (add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)     (setq command-line-default-directory "~/")     (setq TeX-source-correlate-method 'synctex)     (setq reftex-ref-macro-prompt nil)     (add-hook 'LaTeX-mode-hook       (lambda()         (add-to-list 'TeX-expand-list              '("%q" skim-make-url))))     (defun skim-make-url () (concat         (TeX-current-line)         " \""         (expand-file-name (funcall file (TeX-output-extension) t)             (file-name-directory (TeX-master-file)))         "\" \""         (buffer-file-name)"\""))      ;; This line tells emacs where to find the latex compiler      (setenv "PATH" (concat "/usr/texbin:" (getenv "PATH")))     '(LaTeX-command "latex -synctex=1")     (add-hook 'TeX-mode-hook     (lambda ()     (add-to-list 'TeX-output-view-style     '("^pdf$" "."     "/Applications/Skim.app/Contents/SharedSupport/displayline -b %q %n %o %b")))     )      ;; start emacs in server mode so that skim can talk to it     (server-start);     ;; This line tells emacs to create pdf files instead of dvi files.     (setq-default TeX-PDF-mode t)     (setq TeX-view-program-list     '(("PDF Viewer" "/Applications/Skim.app/Contents/SharedSupport/displayline -b -g %q   %n %o %b")))     (setq TeX-view-program-selection '((output-pdf "PDF Viewer")))


title: Frame/Box around \chapter-, \section-headings,

text: Does anyone know how to put a frame around \chapter and \section-headings? I'm using Koma-Script (scrbook) but there it's rather difficult to find a solution ... Now I found the package 'titlesec'. I think it must be possible to solve my problem with it but unfortunately I don't get it. Here's a little code-example with some (hanging!) \chapter and \section's where I want a frame around ...               \documentclass[oneside,openright,BCOR=5mm,paper=a4,fontsize=11pt]{scrbook}          \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage[ngerman]{babel}     \usepackage[automark]{scrpage2}     \usepackage{xcolor}          \usepackage{geometry}     \geometry{a4paper, top=35mm, left=30mm, right=60mm, bottom=25mm, headsep=15mm, footskip=12mm}          \usepackage[demo]{graphicx}     \usepackage{textpos}     \usepackage{blindtext}     \usepackage{lipsum}     \usepackage{titlesec}          \usepackage{mparhack}          \setlength{\marginparwidth}{3.2cm}     \setlength{\marginparsep}{0.7cm}     \setheadwidth[0pt]{textwithmarginpar}     \setfootwidth[0pt]{head}          \titleformat{\chapter}[hang]{}{\parbox{1.5cm}{\thechapter}}{0pt}{}{}     \titleformat{\section}[hang]{}{\parbox{1.5cm}{\thesection}}{0pt}{}{}     \titleformat{\subsection}[hang]{}{\parbox{1.5cm}{\thesubsection}}{0pt}{}{}     \titleformat{\subsubsection}[hang]{}{\parbox{1.5cm}{\thesubsubsection}}{0pt}{}{}          \begin{document}          \chapter{Lorem ipsum}     One     \section{dolor}     Two     \subsection{amet}     Three          \end{document}      I also added an image where you can see the result that I want to get ... but unfortunately don't know either how to manage. ![That's how it should look like](http://i.stack.imgur.com/INlTs.png) On the other hand I've already a solution by redefining \makechapterhead and defining a new \Section (capital 's') for framed section headings. Unfortunately I neither wasn't able to add the 'spacing' between chapter/section-number and chapter/section-heading in this redefinitions nor to redefine section in the way that I don't have to use this new command 'Section' :(               \renewcommand\section{\@startsection{section}{1}{\z@}%       {-0.0ex \@plus -1ex \@minus -.2ex}%       {2.3ex \@plus.2ex}%       {\ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\setlength{\parfillskip}{\z@           plus 1fil}\fi         \raggedsection\normalfont\sectfont\size@section}%     }          \renewcommand\@@makechapterhead[1]{         \begin{mdframed}[linewidth=0.0pt, innerleftmargin=0, innerrightmargin=0, innertopmargin=2pt, innerbottommargin=0, backgroundcolor=lightgray]       {%         \setlength{\parindent}{\z@}\setlength{\parfillskip}{\fill}%         \normalfont\sectfont\nobreak\size@chapter{}%         \if@chapterprefix           \let\@tempa\raggedsection         \else           \let\@tempa\@hangfrom         \fi         \@tempa{\ifnum \c@secnumdepth >\m@ne%             \if@mainmatter               \if@chapterprefix                 \expandafter\size@chapterprefix               \else                 \expandafter\size@chapter               \fi               {\chapterformat}%               \if@chapterprefix                 \size@chapterprefix{}\endgraf\nobreak\vskip.5\baselineskip               \fi             \fi           \fi         }%         {\raggedsection \interlinepenalty \@M \size@chapter{#1}\par}}%       \nobreak         \end{mdframed}         \vspace*{0.5\baselineskip}     }               \newcommand\Section[2][]{\begin{mdframed}[linewidth=0.5pt, innerleftmargin=0, innerrightmargin=0, innertopmargin=2pt, innerbottommargin=2pt, linecolor=gray, skipabove=24pt]%       \ifx\relax#1\relax\section{#2}\else\section[#1]{#2}\fi       \end{mdframed}}      It would be great if someone could help me! Thank you in advance and greetings from Austria. -- There's the picture I mentionned below: ![The headings should be at the same position.](http://i.stack.imgur.com/yZ6vd.png) -- Code Example for @Herbert --               \documentclass[oneside,openright,BCOR=5mm,paper=a4,fontsize=11pt]{scrbook}           \usepackage[T1]{fontenc}      \usepackage[latin1]{inputenc}      \usepackage[ngerman]{babel}      \usepackage[automark]{scrpage2}      \usepackage{xcolor}           \usepackage{geometry}      \geometry{a4paper, top=35mm, left=30mm, right=60mm, bottom=25mm, headsep=15mm, footskip=12mm}           \usepackage[demo]{graphicx}      \usepackage{textpos}      \usepackage{blindtext}      \usepackage{lipsum}           \usepackage{mparhack}           \setlength{\marginparwidth}{3.2cm}      \setlength{\marginparsep}{0.7cm}      \setheadwidth[0pt]{textwithmarginpar}      \setfootwidth[0pt]{head}           \begin{document}           \pagestyle{scrheadings}      \clearscrheadfoot           \pagenumbering{Roman}      \cfoot[\hspace{10.5cm}\today]{\hspace{10.5cm}\today}      \ofoot[\pagemark]{\pagemark}           \chapter{Lorem ipsum}      \lipsum[1-3]      \newpage           \pagenumbering{arabic}      \setcounter{page}{1}      \clearscrheadfoot           \ifoot[%        {%           \par% sonst gibt es eine Warnung           \begin{textblock*}{0mm}(0.78\paperwidth,-0.25\paperheight)%          \includegraphics[scale=0.30, angle=90]{demo}          \end{textblock*}        }%      ]{%         {%           \par% sonst gibt es eine Warnung           \begin{textblock*}{0mm}(0.78\paperwidth,-0.25\paperheight)%          \includegraphics[scale=0.30, angle=90]{demo}          \end{textblock*}         }%      }%      \cfoot[\hspace{10.5cm}\today]{\hspace{10.5cm}\today}      \ofoot[\pagemark]{\pagemark}           \chapter{Super}      \blindtext      \par      \blindtext           \end{document}       --- @Herbert In the code example before there has to be included \usepackage{titletoc} and the following code block before \begin{document}:               \titlecontents{chapter}[2.5cm]{\addvspace{0.5cm}\bfseries}{\contentslabel{3.5cm}}{\hspace*{-1.5cm}}{\hfill\contentspage}[\addvspace{0.25cm}]     \titlecontents{section}[2.5cm]{\small}{\contentslabel{3.5cm}\small}{}{\titlerule*[0.12cm]{.}\contentspage}     \titlecontents{subsection}[2.5cm]{\small}{\contentslabel{3.5cm}\small}{}{\titlerule*[0.12cm]{.}\contentspage}     \titlecontents{subsubsection}[2.5cm]{\small}{\contentslabel{3.5cm}\small}{}{\titlerule*[0.12cm]{.}\contentspage}      In the Latex-Body the table of contents is going to be printed by using \tableofcontents. So far so good, now - with all redefinitions of \chapter \section etc., the table of contens looks like ![enter image description here](http://i.stack.imgur.com/1QT2e.png) ... but, it should look like (this result I get without the redefinitions) ![enter image description here](http://i.stack.imgur.com/5IpvT.png)


title: biblatex + biber + babel: configuration for polish language and style of bibliography (missing polish.sty)

text: This problem is probably trivial, but it's very important to me. After hours spent on searching the solution I couldn't find it. My LaTeX document works very well with `biblatex`, `biber` and `babel`, but I couldn't achieved the look of bibliography like in Polish books/articles/thesis. Generally it's look like in English (default), but not sure. **Some additional errors:**               Package csquotes Warning: Load 'inputenc' before 'csquotes' on input line XXX.     Package csquotes Info: Checking for multilingual support...     Package csquotes Info: ... found 'babel' package.     Package csquotes Info: Adjusting default style.     Package csquotes Warning: No style for language 'polish'.      ### My minimal example **main.tex**               \documentclass[a4paper,twoside,openright]{report}     ...     \usepackage[polish]{babel}     \usepackage{polski}     \usepackage{csquotes}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[       style=numeric, % numeric, alphabetic, authoryear, ect.       sorting=nty,       isbn=false,       backend=biber,]{biblatex}     \addbibresource{bibliography.bib}     ...     \begin{document}          % include some chapters     \include{chap_prolog}     ...          \printbibliography     \end{document}      **bibliography.bib**               @Book{KrysWlod99,       author = {Włodzimierz Krysicki and Lech Włodarski},       title = {Analiza matematyczna w zadaniach},       publisher = {Wydawnictwo Naukowe PWN},       year = {1999},       part={1},       address = {Warszawa},       isbn = {83-01-01460-1}     }          @Article{Popper84,       author = {Popper K. R.},       title = {Literatura na świecie},       journaltitle = {Epistemologia bez podmiotu poznającego},       year = {1984},       number = {12}     }      ### The output ![Bibliograpthy printout](http://i.stack.imgur.com/aCANE.png) ...but it should look something like this: [ 1 ] Włodzimierz Krysicki i Lech Włodarski, _Analiza matematyczna w zadaniach_ , Wydawnictwo Naukowe PWN, Warszawa 1999, tom 1. [ 2 ] Popper K.R., _Epistemologia bez podmiotu poznającego_ , ,,Literatura na świecie'' 1984 nr 12. How to **switch on** or declare `biber` and `biblatex` for polish style of bibliography? Or how to write own Polish bibliography style for biblatex and biber? Did I done something in wrong in the example? PS. I know I could use `thebibliography`, but this is not the solution for automatic bibliography.


title: Problem with \edef and CJK

text: In the following code, it seems that using `\edef` with CJK contents may fail. (I used pdflatex, UTF8 encoding.)               \documentclass{article}     \usepackage{CJK}     \begin{document}     \begin{CJK*}{UTF8}{bsmi}     \newcommand{\tiangan}[1]{\ifcase #1%     \or甲\or乙\or丙\or丁\or戊\or己\or庚\or辛\or壬\or癸\fi}          \newcount\fuu\fuu=3     \def\ber{\romannumeral\fuu}     \fuu=4     \ber%iv     \edef\ber{\romannumeral\fuu}% successes in \edef-ining \ber as iv     %\show\ber     \fuu=5%iv     \ber%iv          \def\faa{三}     \def\bor{\faa}     \def\faa{四}     \bor%四     \edef\bor{\faa}% fails in \edef-ining \bor as 四     %\show\bor     \def\faa{五}     \bor%          \def\foo{3}     \def\bar{\tiangan{\foo}}     \def\foo{4}     \bar%丁     \edef\bar{\tiangan{\foo}}% fails in \edef-ining \bar as 丁     %\show\bar     \def\foo{5}     \bar%          \end{CJK*}     \end{document}      What is meant in the error message? How to `\edef`ine a macro with CJK characters? * * * Addition on 18 July 2014 Thanks to egreg and Herbert. I tried `\protected@edef` but then `\global` fails.               \documentclass{article}     \usepackage{CJK}     \begin{document}     \begin{CJK*}{UTF8}{bsmi}     \newcommand{\tiangan}[1]{\ifcase #1%     \or甲\or乙\or丙\or丁\or戊\or己\or庚\or辛\or壬\or癸\fi}     \makeatletter          \def\ber{\romannumeral3}%iii     {%       \global\edef\ber{\ber\romannumeral4}%iiiiv       \show\ber       \ber     }     \show\ber     \ber%iiiiv          \def\bar{\tiangan{3}}%丙     {%       \global\protected@edef\bar{\bar\tiangan{4}}%丙丁       \show\bar       \bar%     }     \show\bar     \bar%丙          \end{CJK*}     \end{document}      How should I rewrite so that the effect of `\protected@edef` is global?


title: Text in itemize goes onto margin and doesnt align with other text

text: I'm having some problems with margins.               \usepackage[top=2.5cm, headsep=0.4cm, bottom=2.5cm,left=2.5cm, right=2.5cm]{geometry}     \geometry{bindingoffset=5mm}      When I use `itemize`, the text doesn't align with other text but goes into the right margin.               \begin{itemize}[align=right]     \item Friðrík H. Jónsson og Sigurður J. Grétarsson (2007). \textit{Gagnfræðikver      fyrir háskólanema}, Háskólaútgáfan, Reykjavík.     \item Ingibjörg Axelsdóttir og Þórunn Blöndal (2006).  \textit{Handbók um ritun og  frágang},  Mál og menning, Reykjavík.     \end{itemize}      Here is my output: ![enter image description here](http://i.stack.imgur.com/sFdsf.png) Can anyone tell me how to fix the text in itemize? I'm using `scrbook` class.


title: preprint REVTeX 4.1 moves the body on the second page

text: This is a follow-up to single-column revtex4-1 adds a page break after the title section I was looking to make the body come right after the abstract. But the solution posted there (insert the option `[notitlepage]` to the document class) does not solve the issue for me: I also need to add the options               [aip, preprint, jmp]      or at least `[preprint]` option and maybe this interferes. I edit my document in TeXmacs, under TeX Live 2011 Version 0.92 (0.92), mac 5.8. Could you help, or do you think this is normal?


title: LaTeX3: Double number sign (##)

text: > **Possible Duplicate:**   >  What is the meaning of double pound symbol (##1) in an argument? I see some LaTeX3 code with `##1` instead of `#1` for parameters. What are the rules for this? This answer uses it, for example.


title: Nested definitions

text: I have the impression that if one defines a macro inside the definition of another one, then `#1` and so on indicate the outer macro's arguments, while `##1` indicates those of the inner one. Is that right? Could one theoretically go furher, i.e. define a macro inside the definition of a macro defines inside the definition of a third one, thus using `###1` for the innermost macro's argument? If so, how many levels of nesting would be allowed?


title: Escape hash symbol (#) in inner macro definition

text: > **Possible Duplicate:**   >  What is the meaning of double pound symbol (##1) in an argument? I'm quite sure this question has been asked many times but I can't find the answer. I'd like to make a macro defining a new macro but I can't get the arguments working. How do I escape the parameter place-holders e.g. #1 for the inner command? Here is an absolutely senseless minimal example:               \documentclass{article}     \newcommand{\defprint}[1]{%         \newcommand{\print}[1]{#1\#1}     }     \begin{document}          \defprint{foo}     \print{bar}     \print{boo}          \end{document}      Gives "foo#1 foo#1" but I want it to be "foobar fooboo". Additionally I'd like to know how to do the same in plain Tex using `\def`. I'd expect something like the following, but the backslash seems to be the wrong kind of escape character too.               \documentclass{article}     \def\defprint#1{%         \def\print\#1{#1\#1}     }     \begin{document}          \defprint{foo}     \print{bar}     \print{boo}          \end{document}


title: Protecting / escaping the # (number-sign/hash) in a callable macro?

text: Consider this MWE:               \documentclass{article}          \usepackage{tikz}          % \gdef\myset{  %*     \tikzset{ %       mystyle/.style={rectangle},       mycode/.code n args={2}{%         \typeout{YEAH! #1 #2} %       },     } % end tikzset     % } % end gdef  %*               \begin{document}          \begin{tikzpicture}     % \myset        %*          \node[mystyle,mycode={trying}{out}] (origin) at (0,0) {};     \end{tikzpicture}          \end{document}      If you compile it as is, it will print "`YEAH! trying out`" to stdout. However, if you uncomment the lines marked with `%*`, then compilation fails with:               ! Illegal parameter number in definition of \myset.     <to be read again>                         1     l.9     \typeout{YEAH! #1                               #2} %     ?       ... clearly, because Latex thinks the `#1` is for the `\gdef\myset`, while I intend it to be for the `\tikzset{` command inside it! So, after checking out How to get the catcode of a token?, and doing `texdef -t latex \makeatletter` and `texdef -t latex \makeatother`, and `\typeout{catcode of #: \the\catcode`#}`, I came up with the following analog to `\makeatletter`, called `\makehashletter`:               \documentclass{article}          \usepackage{tikz}          \typeout{catcode of #: \the\catcode`#} %catcode of ##: 6     \def\makehashletter{\catcode`\#11\relax}     \def\makehashother{\catcode`\#6\relax}          \makehashletter     \gdef\myset{  %*     \tikzset{ %       mystyle/.style={rectangle},       mycode/.code n args={2}{%         \typeout{YEAH! #1 #2} %       },     } % end tikzset     } % end gdef  %*     \makehashother          \begin{document}          \begin{tikzpicture}     \myset        %*          \node[mystyle,mycode={trying}{out}] (origin) at (0,0) {};     \end{tikzpicture}          \end{document}      ... and this does compile - but it dumps `YEAH! #1 #2` to stdout, which is not what I intended. So my question is - is there a way to protect the `#` in a macro like the above, such that when the macro is ran and calls `tikzset`, the `tikzset` will see the previously protected `#`s as arguments? Would it also be possible to somehow use that protection only on certain arguments (e.g. `\myset` could itself accept `#1`, which I would use "unprotected"; and I'd protect/escape the `tikzset` specific ones )? (Note that I've tried:               \edef\hashmark{\string#}      ... as in Match number sign inside plain TeX loop, and then using `\hashmark1` instead of `#1` where I want them "escaped", but that didn't work)


title: A command to define other commands with arguments

text: I want to define a command that defined other commands. A similar problem was considered in Dynamically define commands. However, I couldn't figure out how to adapt that solution to my needs because I need the functions that I dynamically define to be able to take arguments. Consider the following example. I want to be able to use `\definecommand` to dynamically define both `\greetp` and `\greete`. My attempt at a solution is given below, but commented out (I used question marks where I wasn't sure what to do). I would also like my dynamically defined commands to be able to take optional arguments if possible.               \documentclass{article}          \newcommand{\greetp}[1]{hello, #1.}     \newcommand{\greete}[1]{Hello, #1!}          %\newcommand{\definecommand}[2]     %{     %    \expandafter\def\csname#1p\endcsname{#2, ?.}     %    \expandafter\def\csname#1e\endcsname{#2, ?!}     %}     %\definecommand{greet}{Hello}          \begin{document}          \greetp{world}     \greete{world}          \end{document}


title: Redefining macro with arguments in a macro with arguments

text: > **Possible Duplicate:**   >  What is the meaning of double pound symbol (##1) in an argument? In the following code, I would like to build one macro `\caseWord` with two arguments corresponding to `Case` and `end case` so as to change the macro `\algocf@Case` which have two arguments. How can I achieve this ?               \documentclass{article}         \usepackage[longend]{algorithm2e}              \makeatletter             \renewcommand\algocf@Case[2]{%                 \KwSty{Case} #1 \algocf@block{#2}{%                     \@algocf@endoption{end case}%                 }%             }         \makeatother          \begin{document}          \begin{algorithm}         \Begin{             \Switch{X}{                 \Case{1}{                     \While{Continue}{Action}                 }             }         }     \end{algorithm}          \end{document}


title: Is it possible to temporally make undefined \csname control sequence not silently expand to \relax?

text: **Context** Consider the following situation.               \documentclass{minimal}     \makeatletter     \expandafter\def\csname/test\endcsname{%       \foo{bar}}     \def\mymacro#1{%       % Note the / *after* #1       \expandafter\expandafter\expandafter\mymacro@i\csname/#1/\endcsname}     \def\mymacro@i\foo#1{%       \def\temp{#1}%       \show\temp}     \mymacro{test}     % Error: Use of \mymacro@i doesn't match its definition.     \begin{document}     \end{document}      I made a typo in the definition of `\mymacro` adding a `/` before `\endcsname`. The error shown made me believe that `/test` was improperly expanded by the three `\expandafter` but I was wrong. As `/test/` is not defined, it silently expands to `\relax` and yes `TeX` is right saying that `Use of \mymacro@i doesn't match its definition` since I feed it with a `\relax` instead of a `\foo`. **Question** This behavior of `\csname` defined control sequence (that is expanding to `\relax` when undefined) is really handy but sometimes I'd like to deactivate it and maybe issue an `Undefined control sequence` error. Is it possible?


title: Is there an easy way of ascertaining what packages are loaded by classes and other packages?

text: My question (or questions, strictly, because I have two) are prompted by an answer to one of the questions listed in this week's newsletter which indicated that there was no point in loading the `{hyperref}` package because it had already been loaded by the document class or another package (I forget which). So: **Q1:** Is there an easy way to ascertain what packages are loaded by classes and other packages? I know 'read the documentation!' is the obvious answer, but let's face it, some of the package documents run for upwards of 100 pages. **Q2:** Does it matter if I inadvertently load a package that has already been loaded?


title: Correctly highlighting custom html tags in listings

text:
# Problem statement I have several code listings containing HTML markup in my latex files. These listings contain multiple custom html tags (created in combination with corresponding AngularJS directives). Such an HTML fragment could look for example like this:               <list-component data="angularDataObject"         list-type="dataActor">     </list-component>

      Originating from a CamelCase name of a directive `listComponent` in JavaScript, a dash is added in between resulting in `list-component` to maintain code readability. I tried using both listings and minted for syntax highlighting: ## listings Using listings I achieved the following result:               \documentclass{article}     \usepackage{listings}     \begin{document}     \begin{lstlisting}[language=HTML]     <list-component data="angularDataObject"         list-type="dataActor">     </list-component>

     \end{lstlisting}     \end{document}      ![listings result](http://i.stack.imgur.com/ard1x.png) As you can see, the tag name is not identified, neither the custom attribute `list-type`. I think the word `type` is recognized as standard html attribute and therefore highlighted. ## minted Using minted I achieved the following result:               \documentclass{article}     \usepackage{minted}     \usemintedstyle{borland}     \begin{document}     \begin{minted}{html}     <list-component data="angularDataObject"         list-type="dataActor">     </list-component>

     \end{minted}     \end{document}      ![minted result](http://i.stack.imgur.com/KIezm.png) The minted result is even worse, as the word `list` is highlighted before the dash - `component` by contrast isn't, even though `list` is not an HTML standard tag. Attributes look fine this time, but the closing tag is not identified at all and gets an ugly background behind the opening bracket `<`. # My goal I search for a plugin that is able to automaticly detect and highlight custom tags, without needing to add them each by each - since I might be unsure which tags I'll use in the future. Further it would be great to identify custom attributes, but I could go without that, if attributes are not highlighted at all. Finally it is essential that closing tags are at least highlighted the same way as the opening ones were highlighted before. Thanks in advance for your generous help and advices! By the way, while typing this question and adding language data for different code highlighting I discovered that Google Code prettifier is analyzing and displaying my code perfectly :-/ # Other related TEX.SE questions **\listings code style for HTML5 (CSS, HTML, JavaScript)** In this solution any tags must be noted in the settings in order to be identified. **How to highlight own keywords in HTML lstlistings?** This solution allows individual highlighting of code parts, but changes need to be hard-coded into the listing. This ruins readability in the TEX markup. **How to use angle brackets for a keyword in \listings?** This solution reuires once again that all tags are defined a priori.


title: Right Align Equation Number with hfill in Custom Environment

text: I have a couple of custom environments that I want to be able to use `\hfill` to right align the last column (similar to what `{align}` environment does with equation labels}. I attempted to use `\hfill` but that seems to be ignored within an `align*`, and `tabular` environments. In the case of the tabular, or array like environment (with possibly a large number of columns), I have been adding `\multicolumn{5}{r}{}` for the case where the last 5 columns are unused to skip over them (and adjusting appropriately depending on the number of columns). This mostly works, but I have to count how many columns have been used, and if I decide to remove a column I have to adjust this. It would be preferable to not have to do that, and instead use `\hfill` to fill up the rest of the line and add the last column. So, my question is there an easy way to use `\hfill` in an environment like tabular, to either get to the lat column, or preferably to the right hand side of the page.


title: Language in biblatex?

text: If I want to produce a referece like this in my bibliography:               Boncompagni, Baldassarre. Tre scritti inediti di Leonardo      Pisano. — Firenze : Tipografia Galileiana, 1854. — 122 p. (in Lat.)      Do I use "Latin" or "langlatin" as my language? Because in biblatex manual it says it's either a literal or a key. Where does it say that I need to add "lang" prefix to the language? And why do i need it there? In the manual it says:                If localization keys are used, the preﬁx lang is omissible.      What are the **localization keys**? This is very confusing - please help!


title: subfigure - how to eliminate (a), (b), ...

text: I am using the `subfigure` package to reference parts of a figure. It works just fine when each of the subfigures is a single plot and I want LaTeX to insert labels (a), (b) ... under each. However, for consistency with other figures in my manuscript, I would like to have a single, multi-panel plot where I insert the (a), (b), ... manually (done using lattice in R). I can do this by still using               \subfigure[][]{%       \label{beta}       }%      for each subfigure and then inserting the single plot. However, this still gives the labels (a), (b), ... - now superimposed on each other. I would like to get rid of these, whilst still maintaining the functionality of subfigure which allows me to reference individual subfigures. I have tried `\renewcommand*{\thesubfigure}{}` but that removes the subfigure labels everywhere. Would you know which command makes the subfigure labels under the plots and how to modify this to the desired effect?


title: Setting image size using em units instead of pt

text: I have found this question very helpful in my configuration of images. Inspired by tex4ht's capabilities (it's so much more powerful than I thought!) I'm wondering if I could have image width configured in em units instead of pt units. Here are examples of my tex and cfg files:               mwe.tex:          \documentclass{article}     \usepackage[]{graphicx}     \usepackage[]{amsmath}     \begin{document}       EPS file (0.3 textwidth)     \begin{center}       \includegraphics[width=0.3\textwidth]{plot.eps}     \end{center}       PNG file: (0.5 textwidth)     \begin{center}       \includegraphics[width=0.5\textwidth]{plot.png}     \end{center}     \end{document}          my_mwe.cfg:          \Preamble{html}     \Configure{graphics*}       {eps}        {%           \Picture[pict]{\csname Gin@base\endcsname\PictExt          \space width="\the\dimexpr \expandafter\the\csname Gin@req@width\endcsname *3/2"        }%         }     \Configure{graphics*}       {png}        {%           \Picture[pict]{\csname Gin@base\endcsname .png          \space width="\the\dimexpr \expandafter\the\csname Gin@req@width\endcsname *3/2"        }%       }     \begin{document}     \EndPreamble      Running               htlatex mwe.tex "my_mwe.cfg"       produces images with widths of 155pt and 258pt, respectively, which look great in my pc browser but not a tablet or phone browser: I'd much rather have the width in em units or percentage. (As a follow up to a comment on the linked question, I found that "...\endcsname *1.5" did not work, but "...\endcsname *3/2" does.) Being originally drawn to tex4ht in order to produce both html and pdf documents, I'd like to be able to take advantage of the responsiveness of html. Is there hope that this is configurable? Thanks.


title: Dotted vertical line in math array + siunitx?

text: This works until I uncomment siunitx. I presume this is a bug? Should I file anywhere?               \documentclass{article}          \usepackage{amsmath}     \usepackage{arydshln}     \usepackage{mathtools}          % Uncommenting this line breaks this document. It will trigger a compilation error on the dotted line indicator.     %\usepackage{siunitx}          \begin{document}          \[         \begin{array}{c : c : c}             1 & 2 & 3 \\             4 & 5 & 6 \\         \end{array}     \]          \end{document}


title: Using LyX, how do you put a table and a figure side by side and caption them Table XX and Figure XX?

text: I have found solutions for them to be done in normal TeX, but how do I do this in LyX? What I wish to obtain is something like that shown in Table and Figure side-by-side with Table caption above, Figure caption below I have tried doing this by creating a mini-page and putting two boxes inside, but the table keeps getting captioned as a sub-figure instead of a table.


title: Updating pgfplots

text: I am using Latex in MacOsx Lion. My current version of `pgfplots` is 1.4.1 which I want to upgrade to 1.7. I really do not know how to install version 1.7. Any help ?


title: How to draw big circle (intersection of a plane with a sphere)?

text: I use Geospacw to draw two big circles but I cannot it using TikZ (or PSTricks). ![picture](http://i.stack.imgur.com/N2BLJ.jpg) How can I draw it?


title: these-like BibLaTeX style

text: The title is pretty-much self-explanatory: I'm searching for a BibLaTeX (not BibTeX) style that would give such a result: http://books.google.pl/books?id=5iBGig7WzV4C&lpg=PP1&hl=pl&pg=PA207#v=onepage&q&f=false . For BiBTeX there's the these style (which is almost perfect, were it not for the shortening of the years): http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibstyles.pdf but I didn't find anything even distinctly similar for BibLaTeX (and I can't use BibTeX in my work since it has problems with ancient greek symbols in titles). So my question stands as in the title: is there a these-like BibLaTeX style? Or at least could you provide me with some hint which style would be the closest one to what I'm searching for and then with what commands I could tailor it to my needs? Thanks in advance! Edit 1: The requested picture(s):   * the exact result I want to achieve:  ![image1](http://i.stack.imgur.com/Vpkok.png)   * what these-style gives me but BibLaTeX cannot:  ![image2](http://i.stack.imgur.com/dvexB.png)


title: Bar overlapping in bar plot

text: I created this graph using `pgfplots`: ![enter image description here](http://i.stack.imgur.com/7hPo9.png) As you can see, the bars overlap near 0. How can I solve the problem? **MWE**               \documentclass[12pt,a4paper,twoside,openright]{book}          \usepackage{tikz}     \usetikzlibrary{positioning}     \usepackage{pgfplots}     \pgfplotsset{width=10cm}          \begin{document}         \begin{tikzpicture}[scale=0.8]                     \begin{axis}[ybar,                                  ymajorgrids=true,                                  xlabel=nodi,ylabel=energia,                                  bar width = 5pt]                         \addplot [fill=red!50,draw=red!50!black]                             table [x=nodes,y=bc]                             {./MATLAB/grafici/energia/broadcast_vs_pure_network_coding/energy_bc_vs_pnc_1e_3_100nodes.txt};                         \addplot [fill=blue!70, draw=blue!50!black]                             table [x=nodes,y=pnc]                             {./MATLAB/grafici/energia/broadcast_vs_pure_network_coding/energy_bc_vs_pnc_1e_3_100nodes.txt};                     \end{axis}     \end{tikzpicture}          \end{document}      Here the data using to make the plot:               nodes   bc          pnc     1       6.7916e-05  6.792e-05     3       6.8753e-05  6.8748e-05     7       7.0441e-05  7.0369e-05     12      7.2541e-05  7.2339e-05     20      7.5999e-05  7.5407e-05     25      7.8128e-05  7.7274e-05     35      8.252e-05   8.0968e-05     50      8.915e-05   8.6421e-05     65      9.5991e-05  9.1831e-05     75      0.00010053  9.5423e-05     90      0.00010756  0.00010082     100     0.00011228  0.00010441


title: How to define an environment that begins with a node?

text: Please see the following definition:                    \tikzstyle{boxStyle} = [draw=blue!80, fill=blue!9, very thick,             rectangle, rounded corners=3mm, inner sep=10pt, inner ysep=15pt]          \tikzstyle{boxTitleStyle} =[fill=blue!80, rectangle, rounded corners=2mm,             text=white, inner sep=10pt, inner ysep=7pt, left=10pt]               \newcommand{\textBox}[2] {            \begin{tikzpicture}            \node [boxStyle]  (box) {\begin{minipage}{0.5\textwidth}#2\end{minipage}};            \node[boxTitleStyle] at (box.north east) {#1};            \end{tikzpicture}          }      Now I want to covert it as an environment:                \newenvironment{textBox}[1]       {\begin{tikzpicture}\node [boxStyle]  (box) {\begin{minipage}{0.5\textwidth}}}       {\end{minipage};\node[boxTitleStyle] at (box.north east) {#1};\end{tikzpicture}}      or,                \newenvironment{textBox}[1]       {\begin{tikzpicture}\node [boxStyle]  (box) \begin{minipage}{0.5\textwidth}}       {\end{minipage};\node[boxTitleStyle] at (box.north east) {#1};\end{tikzpicture}}      are not true, any suggestions?


title: A closed degree symbol

text: How can I make the exponent on gamma in this picture? The best description I can come up with is a closed degree symbol. ![gamma](http://i.stack.imgur.com/3EjZ8.png)


title: Absolute positioning in TikZ3

text: > I am also submitting the solution, please, save your time and energy on this > Question. My problem is this. The absolute positioning stopped to work in some cases after upgrading TikZ2 to TikZ3. This is the code where I expected a square on the top of the page (picture on left), but I have got something different (picture on right). How can we fix it in TikZ3?               %! pdflatex or xelatex or lualatex     %! bug0002-problem.tex     %! running it twice     \documentclass[a4paper]{article}     \pagestyle{empty}     \addtolength{\hoffset}{-1in}     \addtolength{\voffset}{-1in}     \usepackage{tikz} % version 3     \begin{document}     \begin{tikzpicture}[remember picture, overlay]     \node[minimum width=4cm, minimum height=4cm, draw, fill=orange, anchor=north] at (current page.north) {Hello World!};     \end{tikzpicture}     \end{document}      ![example 1](http://i.stack.imgur.com/8zZlN.png)


title: Footer spacing in LaTeX

text: I have a huge footer in my LaTeX-document (a table I need on each page), but the table is too high to be in the document even though I use `\addtolength{\footskip}{-30pt}` below that size the footer just seems to grow the wrong way   I am using the package, `fancyhdr`   How can I fix that?


title: section numbers (\thesection) and names have next page's values

text: I have customized my headers to display section numbers and section names. However: (a) The section number (`\thesection`) in my header often shows up with the next page's value. (b) The section name for the first page in a chapter needs to be manually set. In the following example code, (a) the section numbers of pages 1-3 display the next page's section number. (b) Also the first page's section name needs to be manually set with `\markright`, or it displays as empty text. Btw, my assumption is that all of my chapters start on odd pages. (I'm currently doing this manually by using `\ensuredoublepage`, though one could certainly amend the `\chapter` command.) This problem seems to stem from the timing of page breaking, sectioning, and writing the header (with the section numbers/names). What is an easy way to fix this? _Note that the example code looks long (in order to fill multiple pages required to demonstrate this effect) but is actually very simple. For understanding the problem, only the code up till the`\chapter` command is important, and the problem must lie there as well._               \documentclass{memoir}          \makeoddhead{myheadings}{\textit{\rightmark}}{}{\textit{\thesection} {\ } -- {\ } \thepage}     \makeevenhead{myheadings}{\thepage {\ \ } -- {\ \ }\textit{\thesection}}{}{\textit{\leftmark}}     \makeheadrule{myheadings}{\textwidth}{\normalrulethickness}          \makepagestyle{chapter}     \makeoddhead{chapter}{\textit{\rightmark}}{}{\textit{\thesection} {\ } -- {\ } \thepage}     \makeheadrule{chapter}{\textwidth}{\normalrulethickness}          \begin{document}          \pagestyle{myheadings}       \renewcommand{\chaptermark}[1]{\markboth{#1}{}}       \renewcommand{\sectionmark}[1]{\markright{#1}}          \markright{Section one (Without this macro, there'd be no text here!)}          \chapter{The only chapter}          This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text. This is introductory text.               \section{Section one}          This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section.          This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section. This is the first section.               \section{Section two}          This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section.          This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section.          This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section. This is the second section.This is the second section. This is the second section.          \section{Section three}          This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section.          This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section.          This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section. This is the third section.This is the third section. This is the third section.          \section{Section four}          This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section.          This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section.          This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section. This is the fourth section.This is the fourth section. This is the fourth section.          \end{document}


title: Need help re-defining the basic trig functions

text: I'd like to define my own commands to replace `\sin`, `\cos`, `\tan`, etc... I'd like to be able to use `\tan[a]{x}` to mean `\tan^{a}{(x)}`, and `\tan{x}` to mean just `\tan{(x)}`. I've tried modeling a solution based on something I found online for having a command with an optional parameter, but I can't seem to get it to work.               \let\sin\oldsin          \def\sin{\@ifnextchar[{\@with}{\@without}}     \def\@with[#1]#2{\oldsin^{#1}{(#2)}}     \def\@without#1{\oldsin{(#1)}}      It complains about \oldsin not being a command. I'd also like this to be able to function in combination with another command I made:               \renewcommand\arcsin[1]{\sin[-1]{(#1)}}


title: How to use multiple parameters in newcommand TIKZ correctly?

text: This is part of my code:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{intersections}          \begin{document}     \begin{tikzpicture}     \newcommand{\parabola}[7]{      \draw[name path=#7,line width=1pt,smooth,samples=200,domain=#1:#2]  plot(\x,{#3*(\x-#4)*(\x-4)+#5});           \ifnum#6=0          \node[left] at (#1,#2) {#7};        \else          \node[] at (0,1) {NO};        \fi     }          \parabola{2}{4}{1}{4}{0}{0}{0}{GS};          \end{tikzpicture}     \end{document}      As You can see, my seventh parameter is not a number. I want first set the name of path with this parameter and second to print it. But when I try to do it, on screen I see "0" instead of "GS". And If condition does not work also...I do not understand why. ![enter image description here](http://i.stack.imgur.com/5D0gc.png) How should I rewrite my command to make what I need? Thank You for help. P.S. I've tried to search solution on internet, but did find exactly what I need.


title: Automatically increase PDF page height

text: I'd like to emulate HTML's infinite page height using LaTeX/XeTeX, i.e. have the PDF pages grow higher until a manual `\newpage` is issued. This could be emulated by setting a very large page height and using `pdfcrop` on the output (or just setting the page height manually), but I'd like a pure TeX variant and if possible support for footnotes etc at the bottom of the cropped page.


title: Is there a way to make "page" size match document length?

text: Many PDFs are never printed but are read in electronic form, where, for at least some readers and reading styles, it would be advantageous to have a single page through which the reader could continuously scroll. Is there a way to adjust "paper" size so that the entire document fits on a single "page"? Are there aspects of the TeX architecture that would make this difficult; features of packages or popular document styles that would break? In particular, I'd be interested in doing this for Tufte-LaTeX, which (with it's sidenotes in place of footnotes and citations) is well-suited for this scenario.


title: How to make unlimited sheet of paper in LaTeX?

text: How can I make LaTeX to do the unlimited (just as big, as the content) sheet of paper? So everything goes right on the one page.


title: All the document in only one long and continuous page

text: Well, may be this is not really useful, but I've thought if it was possible to put all the document in one long page. I mean, if your document is going to be read in a computer, mix all the pages in a _continuous page_. If your document has 90 pages (A4), where each one is 21cm by 29.7cm the _continuous document_ should be (more or less) one page which is 21cm by 90 · 29.7 = 2673cm. Is this possible? **EDIT:** Some things I would like to achieve:   * The `\newpage`, `\chapter{}`, `\part{}`, etc. shouldn't go to a _new page_ , they should only add more vertical space.   * The package `pdfpages` should add the pages continuously with almost no space between them.   * The titlepage, in this case, has a different color, so it could go alone in a basic A4 page (just to make things easier). ## Question Is this possible?


title: LaTeX without pages

text: > **Possible Duplicate:**   >  Automatically increase PDF page height Is it possible to have LaTeX use a single infinite page? I don't know if the PDF file format even supports this, but I see "Screen formatted" PDFs all the time, which use a layout more pleasing to read on a monitor, but for some reason they still have pages. I don't see much point in a screen-based PDF having pages, at least when Letter and A4 options are also offered. Is there a way to make pageless documents with LaTeX?


title: Using Trigonometric Functions

text: When I type Trig functions using {} or () I seem to get the same result, what is the difference between the two?


title: using IEEEtran document class -- how to align multiple rows of author

text: Say I am using IEEE Transactions journal class               \documentclass[conference]{IEEEtran}      How I should align the author properly so that it appears in this format? ![enter image description here](http://i.stack.imgur.com/iGqlV.png)


title: How does \_ work if OT1 is default encoding for LaTeX?

text: Fair warning: I know approximately zero things about fonts and font encodings, so this is perhaps another naive question on my part. Recently, I asked about the behavior of `\detokenize{_}`, as one needs to specify `\usepackage[T1]{fontenc}` for it to work as expected. Apparently, the default font encoding for LaTeX is OT1, and there is no `_` in OT1. Thus, for something like `\detokenize{_}` or `\string_` to render as `_` and not `˙`, one must specify T1 font encoding. Yet, as @egreg points out in a comment on that question and as we all are likely aware, `\\_` renders as `_` in LaTeX without having to do anything to the font encoding. So, my question is how can LaTeX actually render `\\_` as `_` if there is no `_` in OT1, which is the default encoding?


title: Multiple diacritics on one character

text: As linguistics student, I have to put more than one thing on a character every now and then. For example, I need to type `ā̆`. I thought I could simply do that by typing `\={\u{a}}`, but then the macron is placed above an empty space in front of the character. How can I solve this? Thanks P.S. I'm using MiKTeX 2.9, running on Windows 8; in case it might be of use.


title: Forward referencing no longer works after porting from MikTex to Ubuntu

text: I know that you need to rerun latex to resolve references -- it doesn't matter how many times I rerun it -- I get the same warning messages. This sample program:               \documentclass[12pt]{article}     \begin{document}     \label{pg:first}     \newpage     Pages \pageref{pg:first} through \pageref{pg:last}.     \newpage     \label{pg:last}     \end{document}      yields:               Pages 1 through ??.      and the warnings:               LaTeX Warning: Reference `pg:last' on page 1 undefined on input line 6.     LaTeX Warning: There were undefined references.      on every run. A .aux file is generated, but consists only of "/relax". Running under sudo has no effect. Am I just missing something basic in this example? A more complex one used to work in MikTex.


title: Arabic with colored vowels and colored suffix ... possible?

text: is it possible to do this with XelaTex? (Im using texmaker): ![enter image description here](http://i.stack.imgur.com/hI9pJ.png) I already tried some of the suggestions posted here, for instance by using Arabtex. But I wanted to this with arabic type text and not transliterating everything. If not what program is out there that can produce this? Thanks in advance!


title: Footnote indentation on first page

text: Using LyX. While I can remove the indentation of the footnotes on subsequent pages, with `\usepackage[flushmargin]{footmisc}`, the first footnote---really a thanks---with address information stays indented. Looking for a fix. MWE:               \documentclass[english]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage[flushmargin]{footmisc}     \usepackage[english]{babel}     \begin{document}          \title{TITLE}     \author{NAME     \thanks{ADDRESS}\\ EMAIL}          \maketitle          Text          \end{document}


title: biblatex: Tighter integration of \textcite "in the flow of text"

text: > **This question led to a new feature in a package:**   >  `biblatex` Many `biblatex` citation styles feature the `\textcite` command which is _"intended for use in the flow of text, replacing the subject of a sentence"_ (manual, section 3.6.2). At the moment, this works well for citations of single works -- e.g. (assuming the `authoryear` style), one may write in the source               The reference work is \textcite{knuth:ct:a}.      which will be typeset as > The reference work is Knuth (1984). Citing multiple works, on the other hand, is somewhat tedious. If one simply writes (1):               Important works are \textcite{knuth:ct:a,knuth:ct:b,markey}.      the output is rather a list than a correct sentence (2): > Important works are Knuth (1984); Knuth (1986); Markey (2005). One has to write (3):               Important works are \textcite{knuth:ct:a}, \textcite{knuth:ct:b}, and \textcite{markey}.      to get (4): > Important works are Knuth (1984), Knuth (1986), and Markey (2005). Can `\textcite` be modified so that input (1) will yield output (4), hereby achieving a tighter integration "in the flow of text"?               \documentclass{article}          \usepackage[style=authoryear]{biblatex}          \addbibresource{biblatex-examples.bib}          \begin{document}          This is how \texttt{\textbackslash textcite} currently works:\\     Important works are \textcite{knuth:ct:a,knuth:ct:b,markey}.          \bigskip          But I'd like \texttt{\textbackslash textcite} to output the following:\\     Important works are \textcite{knuth:ct:a}, \textcite{knuth:ct:b}, and \textcite{markey}.          \printbibliography          \end{document}


title: Separation between last and secondlast item in citet with authoryear style?

text: If citing several items with `\citet`, I want to achieve a specific separator (like "and") between the last and the second last item. For example `\citet{Grieg,Greg,Gregor}` should give something like `...Grieg (2002), Greg (2001) and Gregor (2003) ...` A minimal working example:               \documentclass{article}          \usepackage[natbib=true,firstinits=true,                 bibstyle=authoryear,citestyle=authoryear-comp,                 minnames=1,maxnames=2,isbn=false,url=false,eprint=false,doi=false,                 maxbibnames=20     ]{biblatex}     \renewcommand*{\finalnamedelim}{\addspace\&\addspace}               \usepackage{filecontents}          \begin{filecontents}{test.bib}     @misc{A01,       author = {Author, A. A. and Buthor, B. B. and Cuthor, C. C.},       year = {2001},       title = {Alpha},     }     @misc{B01,       author = {Dodelson, D. and Edward, E.},       year = {2011},       title = {Beta},     }     \end{filecontents}          \addbibresource{test.bib}               \begin{document}     As shown in \citet{A01,B01}, ...          \printbibliography          \end{document}      Edit: I have seen the answear by Guido (http://tex.stackexchange.com/a/89634/30051) but it does not work for the authoryear style. Therefore, here the more specific question.


title: How to use a counter value in a hypertarget name?

text: I am trying to mark places in my document automatically (for later bookmarking). I defined a counter `nops` and my marking macro should be like this: `\newcommand{\nop}{\addtocounter{nops}{1}\hypertarget{nop\value{nops}}{}}`, but it seems that this is not the correct way to do it, since a bookmark like `\bookmark[dest=nop3]{third occurrence}` always just brings me to the title page. I assume this is a more general problem like 'how to use commands where text is expected' but I don't know enough about latex to properly classify it. Someone more knowledgeable may change the title and tags (seems I can't create any meaningful tags like 'counter value hypertarget name' or 'dynamic bookmarks' for this anyhow).


title: Why is the minipage indented on the left?

text: I am trying to create a CV and for the heading information I am using a minipage to display my name and Curriculum Vitae inline with smaller text containing my contact information. The code works fine, but I cannot figure out why the left edge of the minipage is indented further than the section heading and text and which come below it. Any ideas and help would be very appreciate. Here is the code:               %-------------------------------------------------------------------     % PACKAGES AND OTHER DOCUMENT CONFIGURATIONS     %-------------------------------------------------------------------     \documentclass[10pt]{article}     \usepackage{array, xcolor, lipsum, bibentry}     \usepackage[         paper=letterpaper,         includefoot,            % Uncomment to put page number above margin         marginparwidth=1in,     % Length of section titles         marginparsep=.05in,     % Space between titles and text         margin=1in,         % 1 inch margins         ]{geometry}          \usepackage{showframe}            % Shrink spacing around section headings     \usepackage{titlesec}     \titleformat*{\section}{\large\bfseries}     \titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}          % Break tables across pages     \usepackage{supertabular}          % Set column sizes and color     \definecolor{lightgray}{gray}{0.8}     \newcolumntype{L}{>{\raggedleft}p{0.1225\textwidth}}     \newcolumntype{R}{p{0.81\textwidth}}     \newcolumntype{X}{>{\raggedleft}p{0.05\textwidth}}     \newcolumntype{Y}{p{0.9\textwidth}}          % Commands to simplify starting a table     \newcommand\VRule{\color{lightgray}\vrule width 0.5pt}     \newcommand\smalltab{\begin{supertabular}{L!{\VRule}R}}     \newcommand\medtab{\begin{supertabular}{X!{\VRule}Y}}     \newcommand\longtab{\begin{supertabular}{L!{\VRule}R}}          \begin{document}     %-------------------------------------------------------------------      % NAME AND CONTACT INFO     %-------------------------------------------------------------------          \begin{minipage}[b]{0.65\textwidth}     \begin{flushleft}         \Huge{\textsc{Here is my name\\}}         \Large{Curriculum Vitae}     \end{flushleft}      \end{minipage}     \begin{minipage}[b]{0.35\textwidth}         \small{Street Address\\         City, State 12345\\         emailaddress@gmail.com\\         www.website.com\\         1-555-555-5551}     \end{minipage}          %-------------------------------------------------------------------     % EDUCATION     %-------------------------------------------------------------------     \section*{Education}     \smalltab         2011--present & PhD in Stuff, Very Awesome School.\\[2.5pt]         2009--2011 & Masters in Stuff, Just OK School.\\[2.5pt]         2004--2008 & Bachelors in Things, Relatively Awesome School.\\     \end{supertabular}          \end{document}


title: Italicize all text in the body matching a pattern

text: > **Possible Duplicate:**   >  Is it possible to have certain words in the document always in bold? I have some old papers with a lot of references in it. I am converting them into LaTeX PDFs. I am not using any citation package here to style the references - it would be extremely painful and definitely not worth the effort to make the `.bib` file having all the old references. However, I would like to all of the `et al` in the text to be italicized. The obvious approach would be to use the `\emph` the usual way for each instance of `et al`. But is there a faster/smarter way to achieve this? Some kind of pre-declaration in the preamble to automatically detect `et al` in the text and print them as italics?


title: How to make multiple tables?

text: How to make multiple tables on the same page, as in the example?![enter image description here](http://i.stack.imgur.com/otFMU.jpg)


title: How to draw a multirow table?

text: I am new to Latex and need help drawing tables. Here is what I have right now: ![enter image description here](http://i.stack.imgur.com/P1g2y.png) and here is the code for it:               \begin{center}     \begin{tabular}{|c|c|c|c|}     \hline     Topology & Average Delay(s) & Average Bandwidth(kbps) & Hosts \\     \hline     Low & 0.0994 & 2441.85 & \multirow{2}{*}{64} \\     High & 0.1424 & 2515.77  \\      \hline     Low & 0.2522 & 1798.60 & \multirow{2}{*}{128} \\     High & 0.1113 & 2123.17  \\     \hline     \caption{This table shows}     \label{eval_table}     \end{tabular}     \end{center}      Here is is what I want to do: 1) Shrink the table width so that it matches the column width 2) Fix the last vertical line 3) Set up the caption properly I have spent hours on this and I don't know how to fix it.


title: How do I force \section's to start on a new page if they don't fit on current page?

text: So I am writing a programming book, and I use `\section` for each topic. For example, I'd write,               \section{Another way to double-space a file}          \begin{lstlisting}     awk 'BEGIN { ORS="\n\n" }; 1'     \end{lstlisting}          BEGIN is a special kind of pattern which ...          \section{Triple-space a file}          ....      Sometimes I get a situation where the title of the section is at the very bottom of the page, and the example is at the beginning of a new page, etc. Does anyone know how can I force `\section`s to be on a new page if all of it doesn't fit in the current page? I am using `memoir` document class, btw.


title: Glossaries disabling a footnote on first use

text: I have set to for each glossary item (not acronym) a footnote on the first use. But now I have a glossary item which only appears in the table and I don't want to show a footnote for that single item. Is there any way to turn it of.


title: Use custom latex package in LyX

text: I just downloaded the package `stmaryrd` and have a LyX LaTeX Beamer document in which I want to insert some symbols with this package (`\llbracket`). Is there a way to make LyX include the package in the file, without having to edit the underlying document outside of LyX? Thanks!


title: Why is this loop so much faster under Windows?

text: In a recent question, Yiannis Lazarides was asking about benchmarking loops. Strangely his results were about 800 times faster than mine. I couldn't quite accept that my computer is that outdated (as I only bought it a couple of months ago). The main difference seemed to be that I was compiling the file on Linux while he was compiling it on Windows. So I installed MikTeX on my Windows partition to try it myself and the result has quite surprised me. This is a slightly simplified version of Yiannis' code (to be run with `pdflatex`)               \documentclass{article}     \usepackage{ifthen}          \def\startTimer{\pdfresettimer}     \def\stopTimer{\the\pdfelapsedtime\,scaled seconds}          \begin{document}     \startTimer     \newcounter{acount}     \whiledo{\value{acount}<888}{%     \stepcounter{acount}%       \theacount, }     \stopTimer     \end{document}      On Linux (Ubuntu 10.10 64bit, TeX Live 2010 (both 32bit and 64bit)) the timer reports about 1700 scaled seconds. On Windows (7, 64bit, MikTeX 2.9 (32bit?)) the result is 2 scaled seconds. I am pretty sure that a factor of 850 is not solely attributable to the operating system (both tests are run on the same machine). Also, compiling a “real life” document seems to take about the same time on both operating systems. Where does the difference come from?


title: BibTeX can't open file `myfile.bib.aux'

text: I have created a document called "myfile.tex" with the following code.               \documentclass{article}          \begin{document}          As we can see in \cite{goossens93}...          \bibliographystyle{plain}     \bibliography{testbib}     \end{document}      This compiles fine in PDFLatex however when I try to run bibtex to create the references I get the following error.               I couldn't open file name `myfile.bib.aux'      Does anyone have any idea what Im doing wrong? * * * Edit to respond to comments: I am running bibtex on myfile. There is no myfile.bib the bib file is called testbib


title: Need some material about TikZ?

text: I am interested to work on "TikZ" so I need some material for read and also for practice. If anyone have then share with me.


title: Materials for learning TikZ

text: I feel intimidated in learning TikZ. I was wondering if there are some nice materials (or just your replies) at different level:   1. for providing big picture, which is important to beginners to not lose direction during learning.   2. for comprehensive reference. Examples are important, but only examples are not always clear for understanding the big picture and organization.


title: plotting the graph of hyperbolic tangent

text: Can someone help me to plot the graph of tanh in latex. I know I have to use pgfplot but I do not know actually how to use it. Any type of help is appreciated.


title: IEEEeqnarray reference subequations and subequation set

text: I've a pair of equations and I want to reference to them once using the sub- eqations, i.e. (1a),(1b) and once reffering to both of by using (1). How to do that? Here is what I've so far:               \documentclass{article}          \usepackage{amsmath,IEEEtrantools}          \begin{document}     \begin{IEEEeqnarray}{CC}     \IEEEyesnumber \IEEEyessubnumber*     bla bla & blub blub \label{eq:sub1}\\     bla bla & bla bla  \label{eq:sub2}     \end{IEEEeqnarray}          asd \eqref{eq:sub1}, \eqref{eq:sub2}          \end{document}


title: Customise Bibliography Style Alpha

text: I am trying to use alpha bibliography style, but I have to customise it. what I have in my .bib file is :               @book{laue,         Author = {Kurt Laue and Helmut Stenger},         Date-Added = {2014-05-06 20:55:13 +0000},         Date-Modified = {2014-05-06 20:55:42 +0000},         Title = {Strangpressen: Verfahren, Maschinen, Werkzeuge},         Year = {1976}}      and naturally I get: ![enter image description here](http://i.stack.imgur.com/HfX7W.png) But instead of this I would like to have the bibliography and citations appear like [LAU76] instead of [LS76]. I mean, I would like to appear all of my citations first 3 letters(capital) of the first author and the year of the publication. How do I do that? Thanks...


title: Reactivating “\clearpage” in LaTeX after turning it off with “\let\clearpage\relax”

text: My document has a table of content in it. As i found out, after inserting one (`\tableofcontents`) LaTeX does a `\clearpage` by default. A method to ignore `\clearpage` is the command `\let\clearpage\relax`, witch ignores it till the end of the document. Although i have no other command in my doc, my last page got erased. So i want to reactive `\clearpage` right after the toc was generated. I am searching for something like:               \let\clearpage\relax     \tableofcontents     \*reactive it*      One try to do it with `\begingroup` failed.               \begingroup     \let\clearpage\relax     \tableofcontents     \endgroup      Any ideas?


title: Single instance changing of caption

text: I have a setup where I need, for one instance, to make a caption read Equations rather than Equation. Is there a way to do this The code that I have is below Cheers                   \documentclass{scrreprt}         \usepackage[english]{babel}         \usepackage{aliascnt}%Counter and float caption for Equations         \newaliascnt{eqnfloat}{equation}         \newfloat{eqnfloat}{h}{eqflts}         \floatname{eqnfloat}{Equation}           \newcommand*{\ORGeqnfloat}{}           \let\ORGeqnfloat\eqnfloat           \def\eqnfloat{%           \let\ORIGINALcaption\caption           \def\caption{%           \addtocounter{equation}{-1}%           \ORIGINALcaption            }%           \ORGeqnfloat       }          \begin{document}          {eqnfloat}[!ht]     \begin{eqnarray}      A=B+C \label{eqn:1}\\      B=X+Y \label{eqn:2}     \end{eqnarray}     \caption{Some caption}     \labeL{eqn:1+2}     \end{eqnfloat}          \end{document}


title: Removing list margin

text: I have an `enumerate` in which the items are paragraphs (sometimes more then 1 per item) and the paragraphs are indented after the label. How can I change the behaviour so that from the second line of the item, it should start with normal margin (below the label)? I am using `book` class.


title: Flatten transparency in tikz

text: I have a document which I need to compile PDF/A-1b compatible, which means that transparency is not allowed. I have (several) `tikz` sources directly in the document, and I think they look better with transparency. I have to check if this holds true when flattened. For flattening transparency, I have seen that `ps2pdf -dHaveTransparency=false` (or `ps2pdf13`) should work on pdfs. Is there a way to use `tikz` or `LaTeX` directly to flatten transparency?


title: Coloring a multirow

text: i have currently this code in LaTeX               \begin{footnotesize}     \begin{center}     \begin{longtable}[c]{ll}     \caption[API da listagem de um docente]{API da listagem de um docente.}  \label{relStruct}\\     \begin{tabular}{|l|l|l|}     \hline     \multicolumn{1}{|c|}{\textcolor{WhiteC}{\textbf{URL}} \cellcolor{GreenC}} &     \multicolumn{2}{|c|}{http://di76.di.fct.unl.pt:3007/people} \\ \hline     \multicolumn{1}{|c|}{\textcolor{WhiteC}{\textbf{Method}} \cellcolor{GreenC}} &       \multicolumn{2}{|c|}{GET} \\ \hline     \multirow{2}*{\textcolor{WhiteC}{\textbf{QueryString}} \cellcolor{GreenC}} &      start= & The number of the first person to return \\  &  end= & The number of the last person to return \\ \hline     \multirow{2}{*}{\textcolor{WhiteC}{\textbf{Returns}} \cellcolor{GreenC}} &     \multicolumn{2}{|c|}{200 OK \& XML (people/people+xml)} \\ &     \multicolumn{2}{|c|}{404 Not Found} \\ \hline     \end{tabular}     %\end{center}     \end{longtable}     \end{center}     \end{footnotesize}      And the output of this code its a table where the 2 multirow parts are not painted fully, only the top of the row its painted. Anyone can tell me how to fix these problem in order to paint completely?


title: Make glossary defined terms bold

text: I have defined a lot of terms with the `glossaries` package and use them in my text with the `\gls{}` command. However, I'd like terms called with `\gls{}` to appear bold, so people know that it is a term defined in the glossary. What command do I have to renew and how to achieve this? Thanks in advance,


title: Loading TikZ3+PSTricks at the same time

text: > I am also posting my solution. Please save your time and energy on this > Question! I have experienced a strange behavior after upgrading TikZ 2 to TikZ 3 when loading and using the TikZ and PSTricks packages (via `auto-pst-pdf`) at the same time. Please consider this situation of generating barcodes.               %! latex or pdflatex or xelatex or lualatex     %! with ----shell-escape or --enable-write18     %! bug0001-problem.tex     \documentclass[a4paper]{article}     \pagestyle{empty}     \usepackage{pst-barcode}     \usepackage{auto-pst-pdf}     \usepackage{tikz}     \begin{document}     My first barcode is:\par     \begin{pspicture}(3,1in)     \psbarcode{978-80-87106-00-6}{includetext guardwhitespace}{isbn}     \end{pspicture}\par     My first QR code is:\par     \begin{pspicture}(1,1in)     \psbarcode{http://www.cstug.cz/}{}{qrcode}     \end{pspicture}\par     \begin{tikzpicture}     \node{Hello World!};     \end{tikzpicture}     \end{document}      I had no problem when using TikZ 2, but I got this error message with TikZ 3. > Error: /typecheck in --div-- > > Operand stack: > > 1 2 0.0 TeXcolorgray 65781.8 > > Execution stack: > > %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 > %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 > %stopped_push 1932 1 3 %oparray_pop 1931 1 3 %oparray_pop 1915 1 3 > %oparray_pop 1803 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 > --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push > --nostringval-- --nostringval-- --nostringval-- --nostringval-- 5 > --nostringval-- %repeat_continue --nostringval-- > > Dictionary stack: > > --dict:1180/1684(ro)(G)-- --dict:0/20(G)-- --dict:126/200(L)-- > --dict:179/300(L)-- > > Current allocation mode is local > > Current file position is 601489 > > GPL Ghostscript 9.10: Unrecoverable error, exit code 1 > > PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek. > > ==> 2 pages written on `bug0001-problem-pics.pdf'. I am still tracking down the problem I experienced in a real project: I haven't got the barcodes at all. The `realproject.pdf` file was empty and therefore `pdfcrop` generated an error and there was no cropped version of the PDF file. My project is huge, so I wasn't able to emulate my real situation on a small scale yet. If I do, I'll extend this Question. Still, I couldn't hand over the TeX code generating this sort of error to a TeXist/publisher, because I wasn't able to hide it by `\batchmode` or `\nonstopmode`. My question is: How to fix it when TikZ 3 is loaded to get no error message of this kind as in TikZ 2?


title: Gobble optional arguments

text: You can use `\@gobble`, for instance, to restrict the usage of a macro like:               \documentclass{article}     \makeatletter     \newcommand*{\cmd}[1]{%     #1     \global\let\cmd\@gobble     }     \makeatother          \begin{document}     \null     \cmd{Hello World!}     \cmd{Again...}%not desirable     \end{document}      But, if you have a command with an optional argument, e.g. `\newcommand{\cmd}[2][]{#1 #2}`, there is no kernel macro that helps you. Sure, you could define something like               \newcommand{\@gobble@opt}[2][]{}     %\newcommand{\RG@gobble@opt}[2][]{}%alt: to avoid possible name clashes      Is this the usual way? Is it, generally speaking, absurd to gobble like this?


title: Lists (itemize, enumerate) without \parshape

text: AFAIU (reading `ltlists.dtx`), lists (itemize, enumerate) in `LaTeX` rely on \parshape. Is there an other way to get the same result without `\parshape`. _Motivation:_ `wrapfigure` and list environments badly interact together because both use `\parshape` AFAIU, so I'm looking for a replacement. I could use two `minipage`s but I'd like to know if something else is possible.


title: Modifiying just the <after-sep> in titlesec pacakge

text: Good day. I'd like to add some space after each section. I'm using article class and I've looked in the titlesec package to customize this parameter. I've studied couple of questions and mostly people suggest using this command:               \titlespacing*{<command>}{<left>}{<before-sep>}{<after-sep>}      In this case I need to modify each parameter which I don't want to do. **How do I increase the _after-sep_ proportionally without dealing with other parameters?** Example:               \documentclass[12pt]{article}     \usepackage{lipsum}     \begin{document}          \section{Header}     \lipsum[1]               \subsection{Subheader}     \lipsum[1]          \end{document}      I want to increase the space between title and the paragraph shown in this picture: ![latex.jpg](http://i.stack.imgur.com/olq9d.jpg)


title: Problem with Compiling .pdf

text: I'm not sure if this question has been asked here or not; a quick search didn't reveal anything, but maybe I didn't use the correct terminology (regardless, I apologize if it is a duplicate). I'm not certain why, but last night while at home, I was able to compile my .tex document without a problem and get a .pdf file (if it's relevant, this was in WinEdt 8). When I came into my office today and started working on the .tex file again, I click the PDFTeXify button, and no .pdf file is produced (my office computer has WinEdt 7). In the PDFTeXify compilation report, no errors or warnings are listed, but there aren't any pages output. This is the first time I've had trouble with this, so I'm not sure how to address it. Any information and/or insight would be greatly appreciated!


title: Changing the position of frame bullet indicators in Beamer

text: I am using Ilmenau Beamer theme, that, in every frame header, vertically stacks navigation bullets that counts the number of frames in each subsection of the presentation. I am wondering if it is possible to change this vertical stacking of bullets, since, if one of my presentation sections contains many subsections, the header will occupy a significant space of the frame area. So, my question is, is it possible organize the bullets of a section like in two columns, in order to reduce the area occupied by the frame header?


title: One page table of contents with hyperlinks for use with pdftk

text: I am using python and pdftk to create a portfolio from many pdf files. About half the files are generate by LaTeX and the other half are scanned in documents. When I am done, I want to create a table of contents with hyperlinks to specific pages in the final, assembled document. I have a table of contents that I have generated with correct page numbers for each document. It looks nice (in my opinion), but the hyperlinks don't work. I believe the problem is that the toc tex file is only one page, so links to other pages don't seem to work. Here is my code for the toc file:               \input{toc_header}     \begin{document}     \begin{center}     \begin{tabularx}{0.95\textwidth}{Xr}     {\large \textbf{Table of Contents}} & page \\     Table of Contents & \hyperlink{page.2}{2} \rule{0pt}{1.2EM} \\     \hline     CV & \hyperlink{page.3}{3} \rule{0pt}{1.2EM} \\     \hline     Support Letter from Nominator & \hyperlink{page.7}{7} \rule{0pt}{1.2EM} \\     \hline     Section 1: Philosophy of Teaching & \hyperlink{page.10}{10} \rule{0pt}{1.2EM} \\     \hline     Section 2: Implementation and Outcomes of the Teaching Philosophy & \hyperlink{page.12}{12} \rule{0pt}{1.2EM} \\     \hline     \hspace{0.25in} 2. A: Evidence of Acting on Teaching Evaluations & \hyperlink{page.13}{13}    \rule{0pt}{1.2EM} \\     \hline     \hspace{0.25in} 2. B: Examples of How My Teaching Philosophy Has Been Implemented &    \hyperlink{page.26}{26} \rule{0pt}{1.2EM} \\     \hline     \hspace{0.25in} 2. C: Evidence of the Effectiveness of My Teaching & \hyperlink{page.45}{45} \rule{0pt}{1.2EM} \\     \hline      \hspace{0.25in} 2. D: Syllabi for the Past Three Semesters & \hyperlink{page.58}{58} \rule{0pt}{1.2EM} \\     %many more entries     \end{tabularx}     \end{center}     \end{document}      Is there any way to create a single page document like this with links to pages that technically don't exist, so that when I merge it with other pdfs using pdftk, the hyperlinks work?


title: change background if frame has no title

text: I would like to change my background canvas according to whether my frame has a title. This is the form I'm using (etoolbox):               \setbeamertemplate{background canvas}{        \ifnumequal{\c@framenumber}{1}{%           % First frame        }{%           \ifnumequal{\c@framenumber}{\inserttotalframenumber}{              % Last frame           }{%              %\if{\frametitle}{empty}{              % Empty frames             }{%                  % Other frames               }%        }%     }      Thanks in advance.