title: Boxes of zero height, depth and width unexpectedly affecting document spacing

text: I was adding some mark up for a roughdraft of a document I'm working on. But when I eliminated the mark up, the spacing and linebreaks came out differ. My intention was to create boxes of zero height, depth, and width that I could insert in various places in my document to help in writing during the roughdraft stage of writing. I was under the impression that, since these boxes were zeroed out, they would not have any effect upon the appearance of the underlying text formatting. Generally, these boxes do not appear to effect the appearance of the document whether or not they are present. However, I recently had a paragraph which was heavily marked up for the rough draft. When I eliminated the mark up, the formatting of the paragraph completely changed. I tried figuring out what about my commands was causing the problem. My first guess was that because I was placing the mark up at the beginning of each sentence this was effecting the spacing. So, I tried an example, where my mark up followed the initial word of the sentence. This change did not have any effect. I then tried a number of different scenarios:   * One where I replaced the mark up with just `{}`.   * One where I defined the mark up just as `\relax`.   * One where I defined the mark up as an empty command: ie `\renewcommand{\aes}{}`   * One where I removed everything related to the mark up. But whichever of these I used, there was no apparent different in the final document. What I'm wondering is why the zeroed boxes are creating the effect that they are when there's not apparent effect in any of the other 4 scenarios. Here is a MWE which illustrated what I'm talking about.               \documentclass{article}     \newcommand{\aes}{\makebox[0pt]{\raisebox{1ex}[0pt][0pt]{\textbf{Q}}}}     \pagestyle{empty}     \begin{document}           \verb=\aes= defined as \verb=\makebox[0pt]{$+$}=\vspace{1cm}           {\aes}Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      {\aes}Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      {\aes}Curabitur dictum gravida mauris.      {\aes}Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.      {\aes}Donec vehicula augue eu neque.      {\aes}Pellentesque habitant morbi tristique senectus et netus et malesuada A fames ac turpis egestas.      {\aes}Mauris ut leo.      {\aes}Cras viverra metus rhoncus sem.      {\aes}Nulla et lectus vestibulum urna fringilla ultrices.      {\aes}Phasellus eu tellus sit amet tortor gravida placerat.      {\aes}Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.      {\aes}Praesent eget sem vel leo ultrices bibendum.      {\aes}Aenean faucibus.      {\aes}Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.      {\aes}Curabitur auctor semper nulla.      {\aes}Donec varius orci eget risus.      {\aes}Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam.      {\aes}Duis eget orci sit amet orci dignissim rutrum.      {\aes}Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.      {\aes}Morbi auctor lorem non justo.      {\aes}Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus.      {\aes}Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi.      {\aes}Morbi ac orci et nisl hendrerit mollis.      {\aes}Suspendisse ut massa.      {\aes}Cras nec ante.      {\aes}Pellentesque a nulla.      {\aes}Cum sociis natoque penatibus et magnis dis parturient montes,           \pagebreak           \verb=\aes= still defined as \verb=\makebox[0pt]{$+$}= but not the item in the sentence.\vspace{1cm}           Lorem{\aes} ipsum dolor sit amet, consectetuer adipiscing elit.      Ut{\aes} purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      Curabitur{\aes} dictum gravida mauris.      Nam{\aes} arcu libero, nonummy eget, consectetuer id, vulputate a, magna.      Donec{\aes} vehicula augue eu neque.      Pellentesque{\aes} habitant morbi tristique senectus et netus et malesuada A fames ac turpis egestas.      Mauris{\aes} ut leo.      Cras{\aes} viverra metus rhoncus sem.      Nulla{\aes} et lectus vestibulum urna fringilla ultrices.      Phasellus{\aes} eu tellus sit amet tortor gravida placerat.      Integer{\aes} sapien est, iaculis in, pretium quis, viverra ac, nunc.      Praesent{\aes} eget sem vel leo ultrices bibendum.      Aenean{\aes} faucibus.      Morbi{\aes} dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.      Curabitur{\aes} auctor semper nulla.      Donec{\aes} varius orci eget risus.      Duis{\aes} nibh mi, congue eu, accumsan eleifend, sagittis quis, diam.      Duis{\aes} eget orci sit amet orci dignissim rutrum.      Nam{\aes} dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.      Morbi{\aes} auctor lorem non justo.      Nam{\aes} lacus libero, pretium at, lobortis vitae, ultricies et, tellus.      Donec{\aes} aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi.      Morbi{\aes} ac orci et nisl hendrerit mollis.      Suspendisse{\aes} ut massa.      Cras{\aes} nec ante.      Pellentesque{\aes} a nulla.      Cum{\aes} sociis natoque penatibus et magnis dis parturient montes,           \pagebreak      \renewcommand{\aes}{\relax}              Is it an issue with the parentheses?\vspace{1cm}           {}Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      {}Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      {}Curabitur dictum gravida mauris.      {}Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.      {}Donec vehicula augue eu neque.      {}Pellentesque habitant morbi tristique senectus et netus et malesuada A fames ac turpis egestas.      {}Mauris ut leo.      {}Cras viverra metus rhoncus sem.      {}Nulla et lectus vestibulum urna fringilla ultrices.      {}Phasellus eu tellus sit amet tortor gravida placerat.      {}Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.      {}Praesent eget sem vel leo ultrices bibendum.      {}Aenean faucibus.      {}Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.      {}Curabitur auctor semper nulla.      {}Donec varius orci eget risus.      {}Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam.      {}Duis eget orci sit amet orci dignissim rutrum.      {}Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.      {}Morbi auctor lorem non justo.      {}Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus.      {}Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi.      {}Morbi ac orci et nisl hendrerit mollis.      {}Suspendisse ut massa.      {}Cras nec ante.      {}Pellentesque a nulla.      {}Cum sociis natoque penatibus et magnis dis parturient montes,           \pagebreak      \renewcommand{\aes}{\relax}              \verb=\aes= defined as \verb={\relax}=\vspace{1cm}           {\aes}Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      {\aes}Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      {\aes}Curabitur dictum gravida mauris.      {\aes}Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.      {\aes}Donec vehicula augue eu neque.      {\aes}Pellentesque habitant morbi tristique senectus et netus et malesuada A fames ac turpis egestas.      {\aes}Mauris ut leo.      {\aes}Cras viverra metus rhoncus sem.      {\aes}Nulla et lectus vestibulum urna fringilla ultrices.      {\aes}Phasellus eu tellus sit amet tortor gravida placerat.      {\aes}Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.      {\aes}Praesent eget sem vel leo ultrices bibendum.      {\aes}Aenean faucibus.      {\aes}Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.      {\aes}Curabitur auctor semper nulla.      {\aes}Donec varius orci eget risus.      {\aes}Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam.      {\aes}Duis eget orci sit amet orci dignissim rutrum.      {\aes}Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.      {\aes}Morbi auctor lorem non justo.      {\aes}Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus.      {\aes}Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi.      {\aes}Morbi ac orci et nisl hendrerit mollis.      {\aes}Suspendisse ut massa.      {\aes}Cras nec ante.      {\aes}Pellentesque a nulla.      {\aes}Cum sociis natoque penatibus et magnis dis parturient montes,           \pagebreak      \renewcommand{\aes}{}              \verb=\aes= defined as \verb={}=\vspace{1cm}           {\aes}Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      {\aes}Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      {\aes}Curabitur dictum gravida mauris.      {\aes}Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.      {\aes}Donec vehicula augue eu neque.      {\aes}Pellentesque habitant morbi tristique senectus et netus et malesuada A fames ac turpis egestas.      {\aes}Mauris ut leo.      {\aes}Cras viverra metus rhoncus sem.      {\aes}Nulla et lectus vestibulum urna fringilla ultrices.      {\aes}Phasellus eu tellus sit amet tortor gravida placerat.      {\aes}Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.      {\aes}Praesent eget sem vel leo ultrices bibendum.      {\aes}Aenean faucibus.      {\aes}Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.      {\aes}Curabitur auctor semper nulla.      {\aes}Donec varius orci eget risus.      {\aes}Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam.      {\aes}Duis eget orci sit amet orci dignissim rutrum.      {\aes}Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.      {\aes}Morbi auctor lorem non justo.      {\aes}Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus.      {\aes}Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi.      {\aes}Morbi ac orci et nisl hendrerit mollis.      {\aes}Suspendisse ut massa.      {\aes}Cras nec ante.      {\aes}Pellentesque a nulla.      {\aes}Cum sociis natoque penatibus et magnis dis parturient montes,           \pagebreak           \verb=\aes= not used.\vspace{1cm}           Lorem ipsum dolor sit amet, consectetuer adipiscing elit.      Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.      Curabitur dictum gravida mauris.      Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.      Donec vehicula augue eu neque.      Pellentesque habitant morbi tristique senectus et netus et malesuada A fames ac turpis egestas.      Mauris ut leo.      Cras viverra metus rhoncus sem.      Nulla et lectus vestibulum urna fringilla ultrices.      Phasellus eu tellus sit amet tortor gravida placerat.      Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.      Praesent eget sem vel leo ultrices bibendum.      Aenean faucibus.      Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.      Curabitur auctor semper nulla.      Donec varius orci eget risus.      Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam.      Duis eget orci sit amet orci dignissim rutrum.      Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.      Morbi auctor lorem non justo.      Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus.      Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi.      Morbi ac orci et nisl hendrerit mollis.      Suspendisse ut massa.      Cras nec ante.      Pellentesque a nulla.      Cum sociis natoque penatibus et magnis dis parturient montes,           \end{document}


title: Latex packages in Wordpress

text: Is it possible to use any package in a wordpress.com blog? I see in http://en.support.wordpress.com/latex/ that wordpress uses the packages `amsmath`, `amsfonts` and `amssymb`, but if I want, e.g., to make a diagram with `xypic` -or to use any other package, is there any way?


title: Conditional to \begin and \end some environment

text: The conditional structure of the macro of the MWE allow print two text strings as "`true`" and "`false`" alternatively. So you can print something like "`false true false true false true`" calling six times the same macro without any option. But if the printed strings made a environment (that is: `\begin{...}` and `\end{...}`) this works only the first time, as in the MWE. With a second `\tin .... \tin` then `pdflatex` said that _`\begin{document}` is ended by `\end{...}`_.               \documentclass{article}     \newif\iftiny     \def\tin{\iftiny     \tinyfalse \end{tiny}     \else     \tinytrue \begin{tiny}      \fi}     \begin{document}      normal size      \tin tiny size \tin normal size     % uncomment the next line to see the problem      % \tin tiny size \tin normal size        \end{document}        * What happen with the second `\begin{tiny}` when the macro is called four times?   * Why is wrong this code?   * How fix this problem?


title: Beamer inline itemize and enumeration

text: My goal is to produce inline lists (`itemize` and `enumerate`) in combination with the `beamer` document class. The symbols of these lists should use the same symbols as their non-inline counterparts to match the look of the `beamer` template. For standard document classes, this can be achieved by packages such as shortlst. However, I use `shortlst` in combination with `beamer`, no list symbols show up. Here is a minimal working example:               \documentclass{beamer}          \usepackage{shortlst}          \begin{document}          \begin{frame}{Test}       % standard enumerate where item symbol style is set by beamer template        \begin{enumerate}         \item this         \item takes         \item too         \item much         \item space       \end{enumerate}            % my goal is to have an inline list which uses the same symbols as the "standard" lists       % in this example, no list symbols appear at all       \begin{shortenumerate}         \item this         \item one         \item doesn't       \end{shortenumerate}     \end{frame}          \end{document}


title: Lineno for 2 column

text: How to add line number to a 2 column document where the line number must appear on the left for the left column and on the right for the right column. The lineno package does not seem to provide this option.


title: How to have matrices side by side in latex?

text: I'm new to latex and all of my matrices seem to be created on new lines, I can't seem to put them side by side. Here is what I am doing to make a matrix (with the 2d identity matrix as an example):               \[ \left( \begin{array}{cc}     1 & 0 \\     0 & 1     \end{array} \right) \]      Am I making it wrong? How can I place a second matrix directly beside this, as you would when doing matrix mathematics? Thanks


title: Without any built-in looping macro, can we just use a recursive macro to get a-b-c-d-e?

text: Without any built-in looping macro, can we just use a recursive macro to get an output of `a-b-c-d-e`?               \def\aaa #1{#1-\aaa}     \aaa abcde     % expected result : a-b-c-d-e     \bye      ## Edit: Probably the best way to invoke `\aaa` should be `\aaa{abcde}` so the condition to terminate the recursion is still an open question.


title: Legendre symbol in theory of numbers

text: How can I get a Legendre symbol ![example](http://i.stack.imgur.com/frKMv.png), which just used the dashed line instead of the fractional rule?


title: How do I use l3docstrip?

text: I've got a bundle I'd like to properly document (and begin to release) that uses `expl3` intimately, and it should be documented similarly to `expl3` itself (as seen in `texdoc interface3`. I did a little research and tried to get the real-live uses on SVN to work, but they seem to depend on the fact that `l3docstrip` is a sibling file in that directory. How should I write `myclass.dtx` and `myclass.ins` to conform to convention? Is there an example similar to David Carslisle's model DTX file?


title: Rotated shapes in tikz? How should these placed on chains?

text: I am confused about rotated shapes in tikz: I would like to chain together shapes which are not rectangular. How can this be done?               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{chains}     \usetikzlibrary{circuits.ee.IEC}     \usetikzlibrary{shapes}     \begin{document}     \newcommand\TAPE[3]{       \begin{scope}[                     start chain=#1 going below,                     node distance=1,                     every node/.style={                         on chain=#1,                         shape=tape,                 minimum width=#2,                         minimum height=#3,                         ultra thin,                         draw=red!75!black,                         fill=red!5!white,                         text=black,                         font=\tiny,                         align=left,               tape bend top=none,               tape bend height=4mm,                 }]       \node[rotate=0]   (T1) {#2,#3};       \node[rotate=180] (B1) {};       \node[rotate=0]   (T2) {};       \node[rotate=180] (B2) {};       \node[rotate=0]   (T3) {};       \node[rotate=180] (B3) {};       \node[rotate=0]   (T4) {};       \node[rotate=180] (B4) {};       \node[rotate=0]   (T5) {};       \node[rotate=180] (B5) {};       \node[rotate=0]   (T6) {};       \node[rotate=180] (B6) {};       \end{scope}     }     \begin{tikzpicture}          \TAPE{a}{1cm}{2cm} % Can we get this to work for any set of parameters?     \end{tikzpicture}     \end{document}      I would like the tight chaining to work for any width and column ![enter image description here](http://i.stack.imgur.com/VQ1Uu.jpg)


title: Remove data points without changing the original table

text: I would like to know a way to remove one or more data points from a plot, using pgfplots, generated by an external table "data.csv". In the minimal example below, I would like to remove the third point (3,5) without changing the original table.               \documentclass{article}     \usepackage{pgfplots}     \usepackage{filecontents}     \begin{filecontents*}{data.csv}     a,b,c,d     1,4,5,1     2,3,1,5     3,5,6,1     4,1,4,9     5,3,4,7     \end{filecontents*}               \begin{document}     \begin{tikzpicture}     \begin{axis}     \addplot table [x=a, y=c, col sep=comma] {data.csv};     \end{axis}     \end{tikzpicture}     \end{document}      **Edit** Also, it would be nice to somehow tell pgfplots to erase specifically the "third point", without telling the coordinates. Or at least, only providing the abcissa value. A similar feature is encountered in Origin software, where you choose the points to erase by hand.


title: Equivalent of \show to display the LaTeX code in the document

text: I am looking for a command similar to show, but want the output in the document itself. All the examples I have found produce the output in the terminal, not the document. So, I want to replace the use of `\show` with an appropriate macro in the following:               \documentclass{article}          \newcommand*{\MyFrac}{\ensuremath{\frac{\pi}{4}}}          \begin{document}     The macro \textbackslash MyFrac is set to \show\MyFrac.     \end{document}      and the output I want produced is               The macro \MyFrac is set to \ensuremath{\frac{\pi}{4}}      I could probably use the verbatim package, but I think that would require me to change the definition at two places if it was to be updated. I want to be able to define the macro in one place and be able use it as needed, but also to be able to display the LaTeX code associated with it.


title: Set different caption,label,etc function of used language

text: I use `tikzpicture` in my document to draw my results and I use an enough generic way that I can reuse my tikz files in various document (article, thesis, beamer...). I would like to set equivalent caption/label/keyword of my picture for different languages I use (typically english and french) and latex use the good one depending on the used language in the document. I would try the `translator` package but I can't find it anywhere, moreover I am not sure that is the good way to do that. Is there a way to do that ? It could look like :               \documentclass[french]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{babel}     \begin{document}     \begin{figure}     \def\mycaption{Coucou}     % where \mycaption is different in french and english but I give both captions.      % For example (but no there is no requirement of the way to do it) :     % \mycaption[english]{Hello}     % \mycaption[french]{Coucou}     \caption{\mycaption}      \end{figure}     \end{document}


title: How to cite an article in the document (not the bibliography)

text: When I use somewhere in the input the > \cite{ArticleM} command, on the output I get the position of ArticleM in the Biobliography. What if I want the name of the author written in that point as well? If I'm using the `cite` package, what command should I use to get that result? Using, as an example, a `.tex` MWE I used in a previous question:               \documentclass[11pt]{book}     \usepackage{cite}     \bibliographystyle{unsrt}     \begin{document}     Here is the bib entry mentioned\cite{Wolf2003}          \bibliography{C:/Users/Giovanni/Desktop/PFG/Docear/data/profiles/default/docear}          \end{document}      I would like to have in the output: > Here is the bib entry mentioned (Wolf et al.)[1] Is this possible? Thank you.


title: Using different centring-methods within a table

text: I've got following table which is almost what I wanted to have. But it would be much better if cells with text would be aligned vertical (only vertical) and cells with `--` would be aligned vertical & horizontal. Does anyone has a suggestion on that issue? Here is my table:               \documentclass[10pt,a4paper]{scrreprt}     \usepackage{classicthesis-ldpkg}     \usepackage{multicol}     \usepackage{multirow}     \usepackage{rotating}     \usepackage[table]{xcolor}     \usepackage{booktabs}     \usepackage{lscape}          \newcolumntype{R}[1]{>{\raggedright\arraybackslash}p{#1}}          \begin{document}          \begin{landscape}          \begin{tabular}{R{4cm}R{4cm}R{4cm}R{4cm}}     %<--- damit geht es jetzt auch ;)     \toprule     \multicolumn{1}{c}{\textbf{Cluster 1}} & \multicolumn{1}{c}{\textbf{Cluster 2}} & \multicolumn{1}{c}{\textbf{Cluster 3}} & \multicolumn{1}{c}{\textbf{Cluster 4}} \\      \midrule          \rowcolor[gray]{.9}  Canada, France, Germany & Italy, Japan, United Kingdom, United States & -- & --\\            Austria, Belgium, Netherlands, Switzerland & -- & Luxembourg & --\\          \rowcolor[gray]{.9}  Finland, Iceland, Norway, Sweden & Denmark, Ireland & -- & --\\            -- & Estonia, Hungary & Czech Republic, Slovenia & Poland, Slovak Republic \\          \rowcolor[gray]{.9}  Greece, Portugal, Spain & -- & -- & -- \\            New Zealand & -- & Australia, Korea, Turkey & Israel \\          \bottomrule     \end{tabular}           \end{landscape}          \end{document}


title: Kind of font used in one article

text: I would like to know what kind of font did the author of this article use? I guess the article is of latex writing. How do I configure my preamble in order to use it. What kind of package needed to be included?


title: Using macros in Memoir chapter for a Diary

text: I'm trying to create an automatic chapter head which displays the day of the week and date (kind of like a diary entry) I have a directory called "august" within which is a file called 01.tex. The parent file 08.tex (08 for August) calls for 01.tex. see my WME main file 08.tex:               \documentclass{memoir}         \usepackage[parent]{currfile}         \let\ordinal\relax         \usepackage[dayofweek]{datetime}         \newcommand{\diarydate}{\formatdate{\currfilebase}{\parentfilebase}{2014}}               \begin{document}          \input{08/1.tex}          \end{document}       08/1.tex:               \chapter{\diarydate}      The errors I get: > ./08/1.tex:1: Use of \@chapter doesn't match its definition. > [\chapter{\lauddate}] ./08/1.tex:1: Argument of \@gobbletwo has an extra }. > [\chapter{\lauddate}] ./08/1.tex:1: Paragraph ended before \@gobbletwo was > complete. [\chapter{\lauddate}]


title: How to use images in a table?

text: I want to use a table where the first column contains images and the second column contains text. Ideally the first column should have the width of the image and the rest of the pagewidth should be used for the second column. So I tried to use this:               \begin{tabular}[htbp]{ll}       \begin{figure}[htbp]     \begin{center}     \includegraphics{tag.png}     \end{center}     \end{figure}l & History\\       LS2 & Wegener\\       LS8 & Morik\\       LS10 & Doberkat\\     \end{tabular}      But when I try to generate a PDF I get an error:               ! LaTeX Error: Not in outer par mode.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.326   \begin{figure}[htbp]          ?       Any hints how I can solve that? Thanks!


title: What is the best way to typeset spectral sequences?

text: While writing articles about algebraic topology, I have had to typeset spectral sequences. These are tools for calculating homology and cohomology. Examples appear on page 10 of this book by Hatcher. So far I've typeset these using xypic, but I'm not completely satisfied with this. It doesn't produce the best-looking spectral sequences, I have difficulty creating arrows leaving or entering the visible part of the page and I haven't figured out yet how to shade the background in a checkerboard style (or any other style), which is sometimes useful if your page contains many zeroes. An alternative is Tilman Bauer's package, but I don't really like the "turtle"-approach, moving a cursor between entries and dropping characters. My questions are: Are there other methods for typesetting spectral sequences? What is, in your opinion, the "best" one? Do you have any tips for typesetting spectral sequences?


title: Underarrow with smaller depth, shorter minimum length, and smaller arrow head?

text: I am using underarrows from `amsmath` to decorate messages with their direction, as in `$\underleftarrow{\mathsf{msg}}$` (![](http://i.stack.imgur.com/avc2R.png)) and `$\underrightarrow{\mathsf{msg}}$` (![](http://i.stack.imgur.com/5Jx7z.png)). I am looking for a better underarrow, in several senses:   * _Smaller depth of entire construction._ The underarrows add depth to the message names. I often use these in multiline constructions, such as `align*`, and the extra depth affects the apparent spacing. For example, compare the following versions that use underarrows and underlines.   ![enter image description here](http://i.stack.imgur.com/aeIFu.png)   Using `\smash[b]` does eliminate the added depth but also, for some reason, shifts the arrow down:   ![enter image description here](http://i.stack.imgur.com/foFOH.png)   * _Shorter minimum arrow length._ With the standard underarrows, message names that consist of a single letter are overpowered by the arrow. For example, `$\underleftarrow{\mathsf{p}}$` produces ![enter image description here](http://i.stack.imgur.com/NUu1E.png).   * _Smaller arrow head._ To my eye, the arrow head looks too large for my use case. Are there left and right underarrows that better meet these three criteria? Is there a way that I can construct my own underarrows? Here is a MWE, in case it is useful:               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{equation*}       \begin{aligned}[t]         &\mathsf{bit_0} \bullet \underleftarrow{\mathsf{inc}} \\         &\mathsf{bit_1} \bullet \underleftarrow{\mathsf{p}}       \end{aligned}\quad       \begin{aligned}[t]         &\mathsf{bit_0} \bullet \smash[b]{\underleftarrow{\mathsf{inc}}} \\         &\mathsf{bit_1} \bullet \smash[b]{\underleftarrow{\mathsf{p}}}       \end{aligned}     \end{equation*}     \end{document}


title: Macro to apply tabcolsep to a table from external file

text: I am using R to produce my tables via xtable, but I am not using Sweave to write my document. Instead I am using TexStudio and if possible would like to stick with it. Therefore I am using `\input` to import my tables. Ideally, I would like to have all tables be as wide as `\textwidth`. It seems like there is no way in xtable yet to apply modify `\tabcolsep` directly within the function. Thus it has to be done in Latex, which means I have to do it manually for every single table. The idea was to create a macro, which applies `\renewcommand{\tabcolsep}{VALUE}` at the right position within the `table` environment. Here is a MWE table in the format of all my tables produced by R (imagine this as an external .tex file)               \begin{table}[htbp]     \centering     \caption[a]{bbb}      \label{x}     {\normalsize     \begin{tabular}{lccc}     \toprule      \multicolumn{1}{l}{Delta} & \multicolumn{1}{c}{Gamma} & \multicolumn{1} {c}{Omega} & \multicolumn{1}{c}{Theta} \\     \midrule      \multicolumn{1}{l}{$a+x$} & 0.1231 & 0.1122  & 7124 \\      \multicolumn{1}{l}{$a+x$} & 0.3333 & 0.1122 & 7343 \\      \multicolumn{1}{l}{$a-x$} & 0.3333 & 0.1231 & 9344 \\      \multicolumn{1}{l}{$a-x$} & 0.2222 & 0.1231 & 9342 \\      \bottomrule      \end{tabular}     }     \end{table}      So I believe the command `\renewcommand{\tabcolsep}{VALUE}` would have to be included after \normalsize. Again, the objective is to create a `tabular` with width `\textwidth`. Is this possible? Thanks.


title: How can I center the titles in the table?

text: I have the following table in `LaTex`. How can I center `ABC` and `DEF`?               \begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|}     \hline     \centerline {i}      &    \multicolumn{2}{l|}{ABC} & \multicolumn{2}{l|}{DEF} \\     \hline     &&&& \\     \hline     &&&& \\     \hline     &&&& \\     \hline     &&&& \\     \hline     &&&& \\     \hline     &&&& \\     \hline     \end{tabular}


title: The command \> is already defined?

text: I got bored with writing `\langle` and `\rangle` in my code, so I decided to create the commands `\<` and `\>` for these. That is, I put the following in my header.               \newcommand{\<}{\langle}     \newcommand{\>}{\rangle}      This...doesn't work. It doesn't mind `\<`, but apparently `\>` is already defined. This made me interested, and I tried to find out what it does, if it does anything. But I cannot find anything about this command. Note that I can override this by just going               \renewcommand{\>}{\rangle}      but, well, it feels dirty redefining an existing command! Therefore, my question is, What does `\>` do? Does it do anything? Does it matter that I am reassigning it? (On a side note, why can I type `\<` here, but typing `\<` without the space gives > ?)


title: TikZ \foreach loop with macro-defined list

text: I have a small problem with the TikZ `\foreach` loop whenever the list, over which we loop, is defined my a macro. The following code example will show my problem:               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage{tikz}          \begin{document}     Picture one:          \begin{tikzpicture}     \foreach \x/\y in {1.0/2.0, 3.0/4.0} \node[draw] at (\x,\y) {\x--\y};     \end{tikzpicture}          Picture two:          \newcommand{\mymacro}{1.0/2.0, 3.0/4.0}     \begin{tikzpicture}     \foreach \x/\y in {\mymacro} \node[draw] at (\x,\y) {\x--\y};     \end{tikzpicture}     \end{document}      **The expected result is that both images should look the same.** But in the second image, I only get one node - and both `\x` and `\y` are _each time_ expanded to `1.0/2.0, 3.0/4.0`. I hope someone can help.


title: Can xeCJK be used with the font Times?

text: The following minimal example fed into `xelatex`:               \documentclass{article}          \usepackage{xeCJK}     \setCJKmainfont{MingLiU}     \usepackage{times}          \begin{document}         Test 汉语     \end{document}      typesets the CJK correctly, but does not typeset the Roman text in Times, but in Computer Modern instead. What's the correct way to have xeCJK only affect the CJK text and leave any Roman font settings unchanged?


title: Uneven vertical spacing in list of figure

text: I am writing my dissertation and have two problems with list of figures. I am using a template and have little knowledge about modifying the template. The first problem is concerning vertical spacing in list of figure. I want the list of figure entries to be double spaced. However, the space between some entries are single spaced. The following is the code used.               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%                           LIST OF FIGURES     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \phantomsection     \addcontentsline{toc}{chapter}{LIST OF FIGURES}            \renewcommand{\cftloftitlefont}{\center\normalfont\MakeUppercase}          \setlength{\cftbeforeloftitleskip}{-12pt} %% Positions the LOF title vertically to match the chapter titles     \renewcommand{\cftafterloftitleskip}{12pt}               \renewcommand{\cftafterloftitle}{%     \\[4em]\mbox{}\hspace{2pt}FIGURE\hfill{\normalfont Page}\vskip\baselineskip}          \begingroup               \begin{center}     \begin{singlespace}     % These values make the lof table entries appear double spaced between.     \setlength{\cftbeforechapskip}{0.4cm}     \setlength{\cftbeforesecskip}{0.30cm}     \setlength{\cftbeforesubsecskip}{0.30cm}          \setlength{\cftbeforefigskip}{0.4cm}     \setlength{\cftbeforetabskip}{0.4cm}           \listoffigures          \end{singlespace}     \end{center}      After compile, this is the list of figure I obtain. ![list of figure](http://i.stack.imgur.com/zZocX.jpg) As you can see, the vertical spacing between figure 1.4 and 3.1 is too wide. Also, the vertical spacing between 3.1 and 3.2 is too narrow. Any help would be appreciated. Thank you.


title: Color the column of a latex table produced by xtable

text: How can I use the R xtable package to produce a table with a colored column? This post shows how to color a row, but I can't figure out how to do the same for columns.


title: number width in predefined (amsbook?) list of figures too wide - self-defined lists okay

text: First of all, sorry for the long mwe - I wanted to include everything I use so that someone may see a potential clash. I based this off of the document class amsbook. I am also going to add a "List of Proofs" section too... I've seen some references to adjusting the width of the numbers in the List of Figures (though I don't think they had                \numberswithin{figures}{subsubsection}      level of detail. Some relied on                \usepackage{tocloft}      which sounds great but I couldn't get the news errors to be fixed when implementing that package. I also found one (How to modify the indentation before sectioning titles in the table of contents?) that tried to fix it (in the book class) without that package, relying on something to do with                \makeatletter      \renewcommand*\l@subsection{\@dottedtocline{2}{1.8em}{3.2 em}}      \makeatother      but my file complained about that itself being undefined **so I took it out** \- I suppose it comes with the tocloft package? This worked part ways, until more obscure errors (for me) came up, **so I took this out too**...               \let\listofdefinitions\relax     \let\endlistofdefinitions\relax     \let\listofexamples\relax     \let\endlistofexamples\relax     \let\listofremarks\relax     \let\endlistofremarks\relax     \usepackage{tocloft}      I'd like to use the                tocloft      package and so I took my 150 page notebook down to a `MWE' to see if someone knew why it didn't work. Here is the start of the preamble.               \documentclass{amsbook}%{scrbook}%{book}              \usepackage{amsthm,varwidth,array,ragged2e}%amsmath         \usepackage[fleqn]{mathtools}          \newtheoremstyle{mystyle}       {\topsep}{\topsep}{}{}{\bfseries}{:}{\newline}       {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}%          \ifstrempty{#3}%           {\addcontentsline{def}{subsection}{#1~\themydef}}%           {\addcontentsline{def}{subsection}{#1~\themydef~(#3)}}}     %     \theoremstyle{mystyle}     \newtheorem{mydef}{Definition}     %     \makeatletter     \newcommand\definitionname{Definition}     \newcommand\listdefinitionname{List of Definitions and Theorems}     \newcommand\listofdefinitions{%       \section*{\listdefinitionname}\@starttoc{def}}     \makeatother          \newtheoremstyle{myotherstyle}       {\topsep}{\topsep}{}{-3pt}{\bfseries}{:}{\newline}% -3 indents the header       {\thmname{#1}\thmnumber{ #2}\thmnote{ ({\color{black}{#3}})}%          \ifstrempty{#3}%           {\addcontentsline{rem}{subsection}{#1~\themyrem}}%           {\addcontentsline{rem}{subsection}{#1~\themyrem~(#3)}}}     %     \theoremstyle{myotherstyle}     \newtheorem{myrem}{Remark}     %     \makeatletter     \newcommand\remarkname{Remark}     \newcommand\listremarkname{List of Remarks}     \newcommand\listofremarks{%       \section*{\listremarkname}\@starttoc{rem}}     \makeatother          \newtheoremstyle{myotherstyleT}       {\topsep}{\topsep}{}{-3pt}{\bfseries}{:}{\newline}% -3 indents the header       {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}%          \ifstrempty{#3}%           {\addcontentsline{def}{subsection}{#1~\themydef}}%           {\addcontentsline{def}{subsection}{#1~\themydef~(#3)}}}     %     \theoremstyle{myotherstyleT}     \newtheorem{mythm}{Theorem}              \usepackage[usenames,dvipsnames,table]{xcolor}              \usepackage{mdframed}         \usepackage{cancel}         \usepackage{amssymb}         \usepackage[strict]{changepage}              \usepackage[top=1.2in, left=0.9in, bottom=1.2in, right=0.9in,heightrounded,marginparwidth=2cm,marginparsep=2mm]{geometry}              \usepackage{thmtools}               \usepackage{hyperref}         \hypersetup{             pdffitwindow=true,             %linkcolor=LightSkyBlue,             citecolor=Sienna,             urlcolor=Navy,             menucolor=black,             colorlinks = true,             linkcolor=Violet,             %linkbordercolor = {white},             %filebordercolor={red},             linkbordercolor=blue,             hidelinks = false,             frenchlinks=true, %eventually comment out             bookmarks=true,             bookmarksnumbered=true,             hypertexnames=false,             breaklinks=true,             backref=true,             hyperindex=true,             pdfauthor={hellslfjkdsl},             final,             %pdftitle={PHYS 5300},             pagebackref=true,             linktocpage=false,             }         \RequirePackage[hyperpageref]{backref}             \renewcommand*{\backref}[1]{}             \renewcommand*{\backrefalt}[4]{                 \ifcase #1                     No cited.                 \or                     Cited on page #2.                 \else                     Cited on pages #2.                 \fi}              \usepackage{amsmath}              \usepackage{tikz}              \usepackage{tikz-cd}              \usepackage{marginfix}              \usepackage{natbib}              \usepackage[capitalize,nameinlink]{cleveref}              \usepackage{wrapfig}         \usepackage{mathabx}              \usepackage{scrextend}              \usepackage{mathdots}              \usepackage{pdfpages}         \usepackage{grffile}             \usepackage{stmaryrd}              \usepackage{etoolbox}                 \newmdtheoremenv{theo}{Theorem} % has to be after mdframed package              \usepackage[parfill]{parskip}              \usepackage{pdfpages}              \usepackage{multicol}              \usepackage{booktabs}         \usepackage{tabularx}         \usepackage{colortbl,array} % für farbige cells         \usepackage{multirow,bigdelim}                   \usepackage[hang,small,bf]{caption}         \setlength{\captionmargin}{25pt}         \usepackage{subcaption} %clashes with subfigure :(              \usepackage{scalefnt} %for controlling font scale in tikz ppg pictures.              \usepackage[xindy,counter=section,sanitize={name=false}]{glossaries} %[toc]% %\glstoctrue         \usepackage{nomencl}             \makeglossaries %has to be after \usepackage{hyperref}                           %                     \glossarystyle{long3col}                                 %\glossarystyle{super3col}                          \setlength{\glsdescwidth}{0.6\textwidth}                     \setlength{\glspagelistwidth}{0.15\textwidth}                                \newglossaryentry{RM}                     {                         name=Reidemeister move,                         description={Refer}                     }                 \newglossaryentry{RieSurf}                     {                         name=Riemann Surface,                         description={}                     }                   \usepackage{footmisc}              \usepackage[normalem]{ulem}              \setcounter{tocdepth}{5}                   \usepackage[all,knot,poly,cmtip]{xy}         \usepackage{empheq}               \newcommand{\blankbox}[2]{%       \parbox{\columnwidth}{\centering              \setlength{\fboxsep}{0pt}%         \fbox{\raisebox{0pt}[#2]{\hspace{#1}}}%       }%     }          \newtheorem{theorem}{Theorem}[chapter]     \newtheorem{lemma}[theorem]{Lemma}     %     \theoremstyle{definition}     \newtheorem{definition}[theorem]{Definition}     \newtheorem{example}[theorem]{Example}          \newtheorem{xca}[theorem]{Exercise}     %     \theoremstyle{remark}     \newtheorem{remark}[theorem]{Remark}     %     \numberwithin{section}{chapter}     \numberwithin{equation}{chapter}          \numberwithin{figure}{subsubsection}          \newtheoremstyle{exx}       {\topsep}{\topsep}{}{}{\bfseries}{:}{\newline}       {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}       \ifstrempty{#3}         {\addcontentsline{exx}{subsection}{#1~\theexx}}         {\addcontentsline{exx}{subsection}{#1~\theexx~(#3)}}}     \theoremstyle{exx}     \newtheorem{exx}{Example}              \makeatletter           \newcommand\examplename{Example}         \newcommand\listexamplename{List of Examples}         \newcommand\listofexamples{             \section*{\listexamplename}\@starttoc{exx}}         \makeatother          \usepackage{lipsum}          \makeindex      and here is the beginning of the document, after the preamble               \begin{document}        \frontmatter     \title{Literature Review f .......}          \maketitle          %    Change page number to 7 if a dedication is present.     \setcounter{page}{5}              %\hypertarget{toc}{} not sure what this does...     \tableofcontents         \newpage         \listoffigures         \newpage         \listofdefinitions %see \newtheoremstyle{mystyle}         \newpage         \listofexamples         \newpage         \listofremarks               \part{Rjdlkfj lkdjsalf jlj fldksjaf lj fdlksja flkdj lkjd f lksdj fkdj skflajsfskjf oi falj aijf l ejf jself jselij flie sjlgfij gski}               \section{one one one one one one one one one one one one one one one one one one one one one one one one one one one }  a     \section{one} b          \subsection{oneA}1          \subsubsection{stuff to do}a          \begin{figure}     \centering       \rule{2cm}{2cm}       \caption{Really long explanation of a picture that doesn't exist but if it did it would still require a really long explanation and please let me worry about the aesthetics of such a beast and I promise to never ever do it again!}     \end{figure}          \subsubsection{stuff to do}n     \subsubsection{stuff to do}o          \begin{figure}     \centering       \rule{2cm}{2cm}       \blankbox{3cm}{3cm}     \end{figure}          \begin{mydef}[stuff what happens if this is really long? Does it just wrap around or does it affect the indentation of neighboring stuff?]     I define nothing!     \end{mydef}          \begin{mythm}[stuff what happens if this is really long? Does it just wrap around or does it affect the indentation of neighboring stuff?]     Nothing matters.     \end{mythm}          \begin{proof}[fjl fkls dlsfk jldk flkj fkdlj flj fsj fdkl fdjfsl fjl sf flks flk flkfj ls lf fsl lfs jflksj fslj fslj fslj fslkj f jfslkj fsljfs lkfsj lkfsj flsk fks jfsofs jl]     stuff     \end{proof}          \chapter{``Introduction''}          `state' is defined by tholynomial.     \begin{myrem}[Automatically Lagrfkdlsaj ksalfj afdkla lajd  falsd fldasf lasfj ld dorm]     nothing     \end{myrem}           even up to leading order.     \begin{exx}[Q dsajf lji kl ldskkdl fkds alkf  fkl alsj fjls ja fdlksj  lkads fldjs fajkf jdsalkf dsja fldsja jd sadls fksla dlsamute]     a          \end{exx}     tes \index{Choice n}, that es'\index{Canoaes}           \subsection{Cano fjasl sjal f lfajf a falsdjf aklf dlka fl aflkjda fdksjalf dla fdaf dla flkdsa fldsajf da flasmetry}          e \S 3.2 of \cite{RolfBerndt2001}           \begin{myrem}[Choice of Pola]     Inde:     \begin{equation*}     \partial\,u     \end{equation*}     wes.     \end{myrem}     \index{here is something}                      \newgeometry{left=5mm,bottom=15mm,top=15mm,right=5mm}                 \glsaddall % if want to print all glossary entries                 \printglossaries                 \restoregeometry          \appendix     \backmatter     \bibliographystyle{alpha}%plain, abbrv, alpha, unsrt, acm, {plainnat}%{amsplain}     \bibliography{/Users/sbh/MainBibliography}%{../MathHomework}%MathHomework.bib     \printindex          \end{document}


title: Triangle with text

text: Can someone help me draw a equilateral triangle with numbers 1, 2, 3 at each interior angle of it? Also I need to equate a letter with that triangle; namely F = graph. Thanks in advance.


title: Problem setting master file to current file with Emacs/AucTeX

text: I have a tex file containing these few lines at the end:               %%% Local Variables:                                                         %%% mode: latex                                                              %%% TeX-master: t                                                            %%% End:      The tex document is only made of that file, so I want it to be the master file. When I compile it with errors, trying to debug with C-c ` opens an empty buffer on top of the compilation log buffer. I think that the top buffer should be the current file. A dired on the top buffer however shows that it is in the non-existant folder "/folder/of/my/tex/Tex Live 2012/". I have tried changing the Tex-Master variable to the absolute path of the tex file, but the problem stays the same. How to have my tex file as the top buffer in the debugging window?


title: Is there a problem with using package \titlesec and \setspace together?

text: I am using package `setspace` for setting the spacing and trying to use package `titlesec` to change the spacing before and after section/subsection titles. I am getting following error: > File `titlesec.sty' not found. I am using Texmaker. Request any possible help in resolving this issue.


title: How to use longtable package?

text: I am trying to use the `longtable` package and I cannot get it to work. I have pasted my code below, can anyone help me?               \documentclass[a4paper,twoside,12pt]{report}     \usepackage{longtable}          \begin{document}          \begin{longtable}{r r r r r r r r r r r r r}     \caption{This table shows the volatges and temperatures of the cell immediately before and immediately after cell failure}          Time & Voltage & Current & Cell 1 & Cell 2 & Plates 1 & Plates 2 & Calroimeter 1& Calorimeter 2& Calorimeter 3 & Calorimeter 4 & Insulation 1 & Insulation 2\\          0     & 10.839 & 0     & 111.5 & 109.6 & 89.3  & 87.8  & 59.5  & 57.9  & 54.9  & 55.6  & 29.6  & 19 \\     200   & 10.854 & 0     & 111.6 & 109.6 & 89.3  & 87.9  & 59.5  & 57.9  & 54.9  & 55.6  & 29.5  & 19 \\     400   & 10.869 & 0     & 111.7 & 109.8 & 89.3  & 87.9  & 59.6  & 58    & 54.8  & 55.7  & 29.5  & 19 \\     600   & 10.898 & 0     & 111.8 & 109.9 & 89.3  & 88    & 59.5  & 58    & 54.9  & 55.7  & 29.5  & 19 \\     799   & 10.903 & 0     & 111.9 & 109.9 & 89.3  & 88    & 59.6  & 58    & 54.8  & 55.6  & 29.5  & 19 \\     0     & 10.916 & 0     & 112.1 & 110.1 & 89.5  & 88.1  & 59.7  & 58.1  & 54.9  & 55.7  & 29.5  & 19 \\     200   & 10.901 & 0     & 112.2 & 110.2 & 89.5  & 88.1  & 59.7  & 58.1  & 54.9  & 55.6  & 29.5  & 19 \\     400   & 10.569 & 0     & 112.4 & 110.4 & 89.5  & 88.1  & 59.7  & 58.1  & 54.9  & 55.7  & 29.5  & 19 \\     600   & 7.6   & 0     & 112.4 & 110.4 & 89.7  & 88.1  & 59.7  & 58.1  & 54.9  & 55.7  & 29.5  & 19 \\     799   & 4.861 & 0     & 112.5 & 110.4 & 90.6  & 88.1  & 59.8  & 58.1  & 54.9  & 55.7  & 29.6  & 19 \\     0     & 2.984 & 0     & 112.4 & 110.5 & 91.3  & 88.3  & 60    & 58.1  & 54.9  & 55.7  & 29.5  & 19 \\     200   & 0.74  & 0     & 112.3 & 110.3 & 91.1  & 88.4  & 60    & 58.3  & 54.9  & 55.7  & 29.5  & 19 \\     400   & 0.378 & 0     & 111.5 & 109.6 & 90.7  & 89    & 60.3  & 58.5  & 54.9  & 55.7  & 29.5  & 19 \\     600   & 0.391 & 0     & 111.7 & 109.6 & 90.9  & 88.8  & 60.8  & 58.9  & 55.1  & 55.9  & 29.5  & 19 \\     799   & 0.344 & 0     & 111.6 & 109.9 & 91.1  & 89.2  & 61.4  & 59.2  & 55.4  & 56.1  & 29.6  & 19 \\     0     & 0.388 & 0     & 111.9 & 110   & 91.6  & 89.3  & 62    & 59.7  & 55.7  & 56.4  & 29.5  & 19 \\     200   & 0.381 & 0     & 112.5 & 110.2 & 92    & 89.5  & 62.7  & 60.2  & 56.1  & 56.8  & 29.5  & 19 \\     400   & 0.366 & 0     & 112.6 & 110.4 & 92.6  & 89.8  & 63.4  & 60.7  & 56.6  & 57.1  & 29.6  & 19 \\     600   & 0.336 & 0     & 112.9 & 110.7 & 93    & 90.3  & 64    & 61.2  & 57.1  & 57.3  & 29.6  & 19 \\     799   & 0.328 & 0     & 113.1 & 110.9 & 93.6  & 90.6  & 64.6  & 61.8  & 57.5  & 57.5  & 29.6  & 19 \\     0     & 0.329 & 0     & 113.2 & 111.2 & 94.1  & 90.9  & 65.2  & 62.3  & 58    & 57.8  & 29.6  & 19 \\     200   & 0.393 & 0     & 113.4 & 111.4 & 95    & 91.2  & 65.9  & 62.9  & 58.4  & 58    & 29.5  & 19 \\     400   & 0.362 & 0     & 113.6 & 111.6 & 95.6  & 91.5  & 66.5  & 63.5  & 58.8  & 58.3  & 29.6  & 19 \\     600   & 0.345 & 0     & 113.8 & 111.9 & 96.3  & 91.7  & 67.1  & 64.1  & 59.2  & 58.5  & 29.5  & 19 \\     799   & 0.343 & 0     & 113.9 & 112.1 & 80    & 92    & 67.8  & 64.7  & 59.6  & 58.8  & 29.6  & 19 \\     0     & 0.335 & 0     & 113.9 & 112.4 & 97.6  & 92.2  & 68.4  & 65.4  & 60    & 59    & 29.6  & 19 \\     200   & 0.374 & 0     & 113.2 & 112.6 & 98.3  & 92.6  & 69.2  & 66    & 60.4  & 59.2  & 29.5  & 19 \\     400   & 0.403 & 0     & 114.6 & 112.9 & 98.9  & 92.8  & 69.7  & 66.6  & 60.7  & 59.5  & 29.6  & 19 \\     600   & 0.381 & 0     & 114.4 & 113.3 & 99.4  & 93.1  & 70.4  & 67.2  & 61.1  & 59.8  & 29.6  & 19.1 \\     799   & 0.388 & 0     & 115   & 113.7 & 100.1 & 93.3  & 71.1  & 67.8  & 61.4  & 60.1  & 29.6  & 19 \\     0     & 0.387 & 0     & 114.7 & 114.2 & 100.8 & 93.4  & 71.8  & 68.4  & 61.5  & 60.3  & 29.5  & 19 \\     200   & 0.41  & 0     & 115.3 & 115   & 101.9 & 93.6  & 72.4  & 69.2  & 61.8  & 60.6  & 29.5  & 19 \\     400   & 0.41  & 0     & 116.5 & 116.3 & 101.8 & 94    & 73.1  & 69.8  & 62.1  & 60.9  & 29.5  & 19 \\     600   & 0.421 & 0     & 117.5 & 118.6 & 102.3 & 94.3  & 73.7  & 70.4  & 62.4  & 61.2  & 29.5  & 19 \\     799   & 0.431 & 0     & 119.9 & 123.6 & 102.7 & 94.6  & 74.3  & 71.1  & 62.7  & 61.4  & 29.5  & 19 \\     0     & 0.442 & 0     & 125.3 & 132   & 103.3 & 95    & 74.9  & 71.7  & 62.9  & 61.7  & 29.5  & 19 \\     200   & 0.448 & 0     & 135.8 & 141.5 & 103.8 & 95.2  & 75.5  & 72.3  & 63.2  & 61.8  & 29.5  & 19 \\     400   & 0.465 & 0     & 151.1 & 147.4 & 104.4 & 95.6  & 76.1  & 72.9  & 63.5  & 62.1  & 29.5  & 19 \\     600   & 0.485 & 0     & 164.4 & 155.3 & 105.3 & 95.8  & 76.7  & 73.4  & 63.7  & 62.3  & 29.5  & 19 \\     799   & 0.495 & 0     & 181.1 & 175.6 & 106.4 & 96.1  & 77.2  & 74    & 63.9  & 62.5  & 29.5  & 19 \\     0     & 0.55  & 0     & 216.6 & 196.5 & 107.8 & 96.3  & 77.7  & 74.4  & 64    & 62.6  & 29.5  & 19 \\     200   & 0.561 & 0     & 246.8 & 215.1 & 108.1 & 96.6  & 78.3  & 75    & 64.3  & 62.8  & 29.5  & 19 \\     400   & 0.604 & 0     & 278   & 244   & 174.5 & 96.9  & 78.8  & 75.5  & 64.5  & 63.1  & 29.6  & 19 \\     600   & 0.646 & 0     & 304.2 & 273.1 & 174.1 & 97    & 79.2  & 75.9  & 64.6  & 63.2  & 29.6  & 19 \\     799   & 0.725 & 0     & 326.1 & 284.4 & 173.4 & 97.2  & 79.6  & 76.3  & 64.8  & 63.3  & 29.5  & 19 \\     0     & 0.759 & 0     & 337.3 & 293.5 & 172.5 & 97.3  & 79.9  & 76.6  & 64.9  & 63.4  & 29.5  & 19.1 \\     200   & 0.837 & 0     & 340.7 & 301.8 & 171.8 & 97.5  & 80.3  & 77    & 65.2  & 63.5  & 29.5  & 19 \\     400   & 0.864 & 0     & 342.3 & 306.3 & 170.6 & 97.7  & 80.6  & 77.3  & 65.2  & 63.7  & 29.5  & 19 \\     600   & 0.701 & 0     & 345.4 & 309.7 & 169.7 & 97.9  & 80.9  & 77.5  & 65.4  & 63.8  & 29.5  & 19 \\     799   & 0.876 & 0     & 346.2 & 307.6 & 169.1 & 98.1  & 81.1  & 77.9  & 65.5  & 63.8  & 29.5  & 19 \\     0     & 0.886 & 0     & 343.7 & 306.2 & 168.6 & 98.3  & 81.4  & 78    & 65.7  & 63.9  & 29.5  & 19 \\     200   & 0.876 & 0     & 340.9 & 305.4 & 168   & 98.4  & 81.6  & 78.3  & 65.8  & 64.1  & 29.5  & 19 \\          \label{tab:addlabel}     \end{longtable}               \end{document}


title: How to include \index{} in new command (custom macro)?

text: When I try to used `\index{}` inside of `\newcommand`, the entry is made in the index, however, the text no longer appears in the body. How can I achieve a macro for the `\index` command?               \documentclass[12pt]{article}     \usepackage{fontspec}               \newcommand{\myentry}[1]{This is an #1}          \begin{document}     \myentry{Apple}          \end{document}      typesets: ![enter image description here](http://i.stack.imgur.com/TGMSO.png)               \documentclass[12pt]{article}     \usepackage{fontspec}          \usepackage{makeidx}     \makeindex     \newcommand{\myentry}[1]{This is an \index{#1}}          \begin{document}     \myentry{Apple}     \printindex     \end{document}      typesets: ![enter image description here](http://i.stack.imgur.com/v3gDi.png)


title: Problem in numbering and showing the references

text: Does anyone knows why the numbering is weird like this? How can I fix it?               Coscia M. Cosica, F. Gianootti, and D. Pedreschi,“ A Classification for Community Discovery Methods in Complex Networks,” CoRR as/1206.3552 (2012)     [0] [1] F. Moradi, T. Olovsson, P. Tsigas, “ An Evaluation of Community Detection Algorithms on Large-Scale Email Traffic,” SEA 283-294 (2012)      Here is the .tex:               \begin{thebibliography}     \bibitem{Coscia} M. Cosica, F. Gianootti, and D. Pedreschi,`` A Classification for Community Discovery Methods in Complex Networks," \emph{CoRR} as/1206.3552 (2012) \\     \bibitem{Moradi} F. Moradi, T. Olovsson, P. Tsigas, `` An Evaluation of Community Detection Algorithms on Large-Scale Email Traffic," \emph{SEA} 283-294 (2012)     \end{thebibliography}


title: biblatex: Better preview of \cite command (before biber is run)

text: When using biblate, writing a citation like this > Also see \cite{oscars_book}. and just executing `pdflatex` once to get an early cheap preview, without running `biber` and `pdflatex` again (editors like _Latexian_ do this for their preview window) I get something like > Also see **[oscars_book]**. But in the final document, using numeric citation It might end up as > Also see [1]. Is there a way to customize the way \cite command renders after the first run of `pdflatex`? For example I would like to always produce [11] (not in bold).


title: pdf figure missing text elements in beamer presentation

text: I have a beamer presentation that I am typesetting using pdflatex in TeXworks (version 0.4.5 r.1280) on a Mac. The page that's giving me trouble is:               \frame{     \frametitle{Loch Ness Monster Histogram}     \begin{figure}     \includegraphics[scale=0.6]{nessie.pdf}     \end{figure}     }      When I typeset it using pdflatex, the title, notes, and axis labels disappear, even though they are part of the original pdf figure when I open it up in Preview. Just to be clear, these are part of the original pdf file, rather than specified in the beamer. Here's the original graph: ![enter image description here](http://i.stack.imgur.com/SC3k7.png) Here's what it looks like in Beamer: ![enter image description here](http://i.stack.imgur.com/9m3Ms.png) You can get the eps and pdf versions of the figure here.


title: Active quotes in macro

text: I would like to use `csquotes` to activate quotes. That is, taking               This is a "quote" inside other text.      and turning it into               This is a ``quote'' inside other text.      `csquotes` makes this possible via               \usepackage{csquotes}% http://ctan.org/pkg/csquotes     \MakeOuterQuote{"}\EnableQuotes      ![enter image description here](http://i.stack.imgur.com/8KAW6.png)               \documentclass{article}     \usepackage{csquotes}% http://ctan.org/pkg/csquotes     \begin{document}          This is a "quote" inside other text.          \MakeOuterQuote{"}\EnableQuotes          This is a "quote" inside other text.          \end{document}      However, my workflow writes content into a macro:               \newcommand{\somemacro}{This is a "quote" inside other text.}      This does not allow one to render the quotes automatically: ![enter image description here](http://i.stack.imgur.com/66xif.png)               \documentclass{article}     \usepackage{csquotes}% http://ctan.org/pkg/csquotes     \newcommand{\somequote}{This is a "quote" inside other text.}     \begin{document}          This is a "quote" inside other text.          \MakeOuterQuote{"}\EnableQuotes          \somequote          \end{document}      How can I fix this?


title: How to specify only one address for authors in BioMed Central LaTeX template?

text: I am using the BioMed Central LaTeX template to typesetting a manuscript. In specifying the address for the authors, I found that the template failed to handle the single address case, i.e.: when directly using the lines given in the original templates, which specifies two different addresses for the authors, it works:               \address[id=aff1]{%                             % unique id       \orgname{Department of Zoology, Cambridge},   % university, etc       \street{Waterloo Road},                       % address       \postcode{}                                   % post or zip code       \city{London},                                % city       \cny{UK}                                      % country     }     \address[id=aff2]{%       \orgname{Marine Ecology Department, Institute of Marine Sciences Kiel},       \street{D\"{u}sternbrooker Weg 20},       \postcode{24105}       \city{Kiel},       \cny{Germany}     }      When commented one of the two addresses,               \address[id=aff1]{%                             % unique id       \orgname{Department of Zoology, Cambridge},   % university, etc       \street{Waterloo Road},                       % address       \postcode{}                                   % post or zip code       \city{London},                                % city       \cny{UK}                                      % country     }     %\address[id=aff2]{%     %  \orgname{Marine Ecology Department, Institute of Marine Sciences Kiel},     %  \street{D\"{u}sternbrooker Weg 20},     %  \postcode{24105}     %  \city{Kiel},     %  \cny{Germany}     %}      and removed the corresponding unique id of the address in the author field, i.e., to change the line:               addressref={aff1,aff2},      to               addressref={aff1},      the superscripts for the first author's name is replaced by "??", and the ones (used to be "1" or "2") for each author's name are disappeared.


title: tableofcontents* still numbers ToC

text: I am using `\tableofcontents*` to remove the page numbering from the ToC but it still continues to number the ToC. What I would like to happen is that there is no page numbering for the ToC and then when the next chapter begins, I would like to start off at the number 1. Here is MWE:               \documentclass{memoir}          \usepackage{lipsum}          \begin{document}     \chapterstyle{bianchi}     \tableofcontents*          \chapter{Awesome}     \lipsum[1-5]          \chapter{awesome 2}     \lipsum[1-5]     \end{document}      If I add `\pagenumbering{roman}` before the chapter then the ToC numbering is gone but then the header is wrong (not in this MWE but in my actual file).


title: Colored box around hyperlinks

text: I would like to highlight with a colored box the hyperlink to an url in the text as well as the hyperlink to tables, figures and references as in the following example: Since I'm pretty new in latex, does anybody help me please? Thank you in advance! ![Example](http://i.stack.imgur.com/fDQXB.png)


title: Add some words before counters of enumerate environment in beamer

text: I want to change the default style of enumerate from   1. item1   2. item2 to Stage 1. item1 Stage 2. item2 So I use               \setbeamertemplate{enumerate item}{Stage \arabic{enumi}.}     \begin{enumerate}     \item     \item     \end{enumerate}     \setbeamertemplate{enumerate item}{\arabic{enumi}.}      But I find that the position of the counter (enumi) is fixed while the word "Stage" is pushed to the left border of the slide (See the snapshot below). ![enter image description here](http://i.stack.imgur.com/m6hkO.png) So what can I do to have the enumerate counter display normally?


title: LaTeX 3 for newbies: simple environments do not work

text: I needed to create a custom environment with more than one optional argument, so I tried with LaTeX 3 (my first experience). However, I can't seem to create not even the simplest environment. Here is an example. In LaTeX I can do:               \documentclass{beamer}     \newenvironment{myframe}{\begin{frame}}{\end{frame}}          \begin{document}     \begin{myframe}     test     \end{myframe}     \end{document}      which of course does nothing more than a standard frame but works. In LaTeX 3               \documentclass{beamer}     \usepackage{xparse}     \DeclareDocumentEnvironment{myframe}{}{\begin{frame}}{\end{frame}}               \begin{document}     \begin{myframe}     test     \end{myframe}     \end{document}      triggers an error and does not compile. What am I missing?


title: Inkscape → PDF → includegraphics → XeLaTeX → changed colors

text: I have an SVG file, which I have made/edited with Inkscape. I want to include this image in my thesis. The svg file is here: http://brussense.be/temp/theSVG.svg (because Inkscape uses a non-standard feature it does not render correctly in most browsers) I exported it with Inkscape to get this PDF (v1.5): http://brussense.be/temp/PDFed.pdf (this file looks fine in Acrobat Pro X) Here's an MWE for the inclusion of the PDF in a LaTeX document:               \documentclass[a4paper]{report}          \usepackage[xetex,hiresbb]{graphicx}          \begin{document}          \begin{figure}[!h]     \centering     \includegraphics[width=\textwidth]{PDFed.pdf}     \caption{Some caption}     \end{figure}          \end{document} My problem is that when I compile this with **XeLaTeX** (with the **xdvipdfmx** driver) the colors of the image have visibly changed in the resulting pdf: http://brussense.be/temp/XeTeXed.pdf I also tried exporting to a v1.4 PDF from Inkscape but the result is the same. I know a very similar question was asked here: \includegraphics PDF, color problem But there are two differences:   * as far as I know my svg file does _not_ contain transparent objects, _nor_ alpha blending (all colors have the alpha channel at 255), _nor_ any blurring or other filters   * the question was specific to pdftex and the suggested solution causes a compilation error in XeLaTeX Does anyone know how I can fix this? I see various possible ways to tackle the problem, but so far I haven't been succesful:   * some setting change in Inkscape   * some (non-visible) change in the svg file   * some postprocessing on the PDF file (I already played with ICC profiles and such but I totaly new to this)   * some changes in my LaTeX code   * some parameter for XeLaTeX or xdvipdfmx   * something else?


title: TikZ: Coordinate calculations inside newcommand

text: > **Possible Duplicate:**   >  TikZ: Variable arithmetic result in node name               \documentclass{standalone}          \usepackage{tikz,pgf}          \usetikzlibrary{decorations.markings,%         snakes,fit,scopes,arrows,calc,shapes.misc,%         shapes.arrows,chains,matrix,positioning,decorations.pathmorphing,shapes,backgrounds,%         decorations.text}          \begin{document}          \newcommand{\bbrect}[3]{         \pgfmathsetmacro\result{#1+1};         \node[rectangle,draw,fit=(A-#1-\result.north west) (A-#1-#2.south east), inner sep = 0pt] (block#3) {}     }          \begin{tikzpicture}         \ttfamily         \begin{scope}                 \matrix (A) [matrix of nodes, ampersand replacement = \&] {                     {0} \& {0} \& {1} \& {0} \& {1} \& {0}\\                     {0} \& {0} \& {0} \& {1} \& {1} \& {1}\\                     {0} \& {0} \& {0} \& {0} \& {1} \& {0}\\                     {0} \& {0} \& {0} \& {0} \& {0} \& {1}\\                     {0} \& {0} \& {0} \& {0} \& {0} \& {1}\\                     {0} \& {0} \& {0} \& {0} \& {0} \& {0}\\                 };         \end{scope}         \bbrect{1}{5}{1};     \end{tikzpicture}          \end{document}      Inside the newcommand the entry A[i,i+1] is accessed, but this gives "illegal unit of measure" error.


title: Best way to replicate the node diagram in LeeMcq08?

text: Q: What would be the best (I'm sure there's some subjectivity involved) way to replicate the univariate distribution relationship diagram of LeeMcq08? ![univariate distribution relationship diagram of LeeMcq08](http://i.stack.imgur.com/GEqHI.png) From what I can gather Inkscape and TikZ along with the inkscape2tikz plug-in would be best. But I'm a little overwhelmed with all the options out there. I talked with the author and he said it was an Xfig LaTeX hybrid which he would not recommend. BACKGROUND: I'd like to build graphics like those of LeeMcq08 to help organize my thoughts on a number of subjects. I'd like to do it in a way that:   1. can create vector graphics   2. supports both programmatic and interactive graphic building   3. supports the addition of LaTeX to the graphic   4. is generally extensible   5. has community support


title: Including a two-page size picture?

text: This is question with regards to the previously asked question How to include a picture over two pages I think this is a great little bit of code, however it doesn't seem to be working for me. I've copied and pasted the `\twopagepicture` code from the solution given above into a test file, along with a large picture (`.jpg` format) to use. The test file is:               \documentclass[twosided]{book}          %...twosidepicture code copy/pasted from above by M. Scharrer>          \begin{document}          \chapter{testing code}          This is a test for the code.          \twosidedpicture{t}{p}{image.jpg}{Caption test}          \end{document}      This is processed via pdfLaTeX through MikTeX 2.8. LaTeX spits out two errors, both the same:               ! Illegal unit of measure (pt inserted).                        \width          1.105 \end{document}      The output of this file is 3 pages. The first shows the dummy chapter title. The second page shows the oddsided portion of the twopage image correctly with a caption below it. However, page three shows the LHS image again but clipped incorrectly: The image begins from the left (hence clipping off the RHS) and the top of the image is not level with the image on the LHS page. Not sure exactly what is causing this, but after a search the only point at which there is a call to `\width` is within the `\twopagepicture` code itself. Any help would be greatly appreciated.


title: Different sibling angles at the same level when using mindmap

text: I tried now for some time to figure out how to use different sibling angles for different nodes at the same level of a mind map. The sibling angles should be customized. Here is my example:               \begin{tikzpicture}     \path[mindmap, concept color=black, text=white, level 1 concept/.append style={level distance=52mm, sibling angle=100}, level 2 concept/.append style={sibling angle=40}]     node[concept] {Parent}     [clockwise from=-40]     child[concept color=blue] {       node[concept] {Child 2}       [clockwise from=60]       child {node[concept] {Grandchild 1}}       child {node[concept] {Grandchild 2}}       child {node[concept] {Grandchild 3}}       child {node[concept] {Grandchild 4}}       child {node[concept] {Grandchild 5}}       child {node[concept] {Grandchild 6}}}     child[concept color=green!60!black] {       node[concept] {Child 1}       [clockwise from=0]       child{node[concept] {Grandchild 1}}       child{node[concept] {Grandchild 2}}       child{node[concept] {Grandchild 3}}       child{node[concept] {Grandchild 4}}       child{node[concept] {Grandchild 5}}       child{node[concept] {Grandchild 6}}       child{node[concept] {Grandchild 7}}       child{node[concept] {Grandchild 8}}};     \end{tikzpicture}      The sibling angle of child 1 looks ok, but I would like to change the sibling angle of child 2 to spread the grandchildren out more evenly. Anyone knows how to do that?


title: Make a specific dashed parabola curve connecting two points in Tikz

text: I have my tex code for this figure a square 1-2-3-4 with a dashed line connecting p2 and p3 by a intermediate point p23. > **How can we make a ( curved) dashed parabola curve (or just any more smooth > curve) connecting p2, p23 and p3?** Thank you, please make it a short > answer. ![enter image description here](http://i.stack.imgur.com/1SvXs.png)               \begin{tikzpicture}[scale=1,baseline]          \coordinate (p1) at (0,0);          \coordinate (p2) at (0,1);          \coordinate (p3) at (1,0);          \coordinate (p4) at (1,1);          \coordinate (p23) at (.7,.7);          \draw [-,>=latex,line width=0.5pt] (p2) -- (p1);          \draw [-,>=latex,line width=0.5pt] (p4) -- (p3);          \draw [-,>=latex,line width=0.5pt] (p3) -- (p1);          \draw [-,>=latex,line width=0.5pt] (p4) -- (p2);          \draw [-,>=latex, dashed, line width=0.5pt] (p23) -- (p2);          \draw [-,>=latex, dashed, line width=0.5pt] (p23) -- (p3);          \node at (-0.15,-0.15) {1};          \node at (-0.15,1.15) {3};          \node at (1.15,-0.15) {2};          \node at (1.15,1.15) {4};          \end{tikzpicture}     }


title: How to use CJK environment in footnote?

text: I am writing a paper in English. But I'd like to have my name in Chinese displayed. I figured that it would be great to have it in the footnote. Here is what I was trying to do:               ...     \usepackage{CJK}     ...     \author{Xxxxx Xxxxx\footnote{\begin{CJK}{UTF8}{gkai}Xxxxx, Xxxxx (某某某) is supported in part by U.S. taxpayers through NSF grant XXX-xxxxxxx.\end{CJK}}\footnotemark[1]}     ...     \begin{document}     \maketitle     ...     \end{document}      Unfortunately, I got an error message when I tried to compile TeX to PDF. > Latex Error: ./colorfulps.tex:45 Use of \@xfootnotemark doesn't match its > definition. ! Incomplete \iffalse; all text was ignored after line 45. ! > Emergency stop. I tried to put the CJK environment in the body text, and it works just find. If I put the CJK environment in a footnote in the body text, I didn't get the error, but the Chinese characters didn't show up, either. So I am pretty sure this is something specific to footnote. Is there a way to get around this? Thanks in advance.


title: Latex tables, text follows tables to the next page

text: I really appreciate your help and cooperation, I'm happy to find replies to all my questions in your platform :) I'm very new to LaTex and have a question: I'm using the tabularx environment and don't know why does the last line of the paragraph preceding any table stick to the table and follow to the next page? It happens with almost all my tables: the preceding page still have empty space but the last line of the page goes to the next page right before the table. What should be done normally is finish text then move only the table to the next page: any clues? I hope the following code makes it clearer. U may notice that the last line of the text moves to the next page even if there is more room in the first page.               % here is my code: last paragraph from my text and the the table.          \documentclass[12pt,oneside]{scrbook}   %[oneside,draft,openright,twocolumn]     \usepackage[utf8]{inputenc}                     %utf8  latin1     %\usepackage{nomencl}     %\makenomenclature     %\usepackage{hyperref}     \usepackage{makeidx}     %\usepackage[intoc]{nomencl}     %\makenomenclature       \usepackage{hyperref}     \usepackage{lscape}     \usepackage[T1]{fontenc}         \usepackage{longtable}     \usepackage{float}     \restylefloat{table} %to let tables go next page without text     \usepackage[stretch=10]{microtype}      %only works with pdflatex, great              \usepackage[fleqn]{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     %added for ref appendix     \usepackage{lipsum}     \usepackage{hyperref}     \usepackage{cleveref}     %finito adde     \usepackage[utf8]{inputenc}  %to read weird charachters     \renewcommand{\textfraction}{0.05}     \usepackage{setspace}                   %for double      \onehalfspacing     %debut diagrams          %fin     \usepackage{enumitem}                    \usepackage{comment} %used for commenting out sections               %\usepackage[top=4cm, bottom=6cm, outer=5cm, inner=3cm, heightrounded, marginparwidth=2.5cm, marginparsep=0.7cm]{geometry}          %\marginpar{\footnotesize This is the text of the marginal note} %independent of usepackage     %\usepackage{microtype} %blabla fitting text           \usepackage[authoryear,round]{natbib} %default[authoryear, round], %authoryear,longnamesfirst,     \bibliographystyle{apalike} %apalike(=no vol.) ieeetr(=add vol. pages.) alphadin plainnat , apalike               %\usepackage{har2nat}               % what does it do???       \setlength{\bibsep}{0.2pt}          %single line spacing in references                    \usepackage[usenames,dvipsnames]{color}     \usepackage{hyperref} %[hyperfootnotes=false]     \hypersetup{breaklinks,colorlinks=true,linkcolor=Black,citecolor=NavyBlue,         urlcolor=PineGreen}           \setcounter{tocdepth}{4}     \setcounter{secnumdepth}{4}     \usepackage{comment}          %\usepackage{emptypage}         %deletes page number on empty pges               \usepackage[flushleft]{threeparttable}      %for tables [para]     \usepackage{adjustbox} %added          \usepackage{array}     \usepackage{dcolumn}                %alignment on the decimal point     \usepackage{tabularx}     \usepackage{booktabs} %\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}     \usepackage{blindtext} %added to fit the table wide          %\usepackage{fleqn}                 %formula alignment     %\mathindent=0pt               \usepackage{flafter}     \usepackage{rotating}  %have figures and tables lanscapres     \graphicspath{{Graphics/}} %           \usepackage[font=footnotesize]{caption} %labelfont=bf     \captionsetup[table]{skip=0pt}          %\usepackage{floatrow}     \usepackage{geometry} %used later to adjust the margins          \usepackage[english]{babel}     \hyphenation{hy-phen-a-tion mar-vel-ous-ly}          \usepackage{siunitx}     %\mbox{} to force Latex to go back to the new row. retour a la ligne in paragraphs          \begin{document}     Introduction[edit]     An early market economy and an early form of mercantilism, called "Islamic capitalism", were developed between the eighth and twelfth centuries.[6] The monetary economy of the period was based on the widely circulated currency the gold dinar, and it tied together regions that were previously economically independent.          A number of economic concepts and techniques were applied in early Islamic banking, including bills of exchange, partnership (mufawada, including limited partnerships, or mudaraba), and forms of capital (al-mal), capital accumulation (nama al-mal),[7] cheques, promissory notes,[8] trusts (see Waqf),[9] transactional accounts, loaning, ledgers and assignments.[10] Organizational enterprises independent from the state also existed in the medieval Islamic world, while the agency institution was also introduced during that time.[11][12] Many of these early capitalist concepts were adopted and further advanced in medieval Europe from the 13th century onwards.[7]          The word "riba" means interest, usury, excess, increase or addition, which according to Shariah terminology, implies any excess compensation without due consideration (consideration does not include time value of money). The definition of riba in classical Islamic jurisprudence was "surplus value without counterpart", or "to ensure equivalency in real value", and that "numerical value was immaterial."               By 1995, 144 Islamic financial institutions had been established worldwide, including 33 government-run banks, 40 private banks, and 71 investment companies.[17] The involvement of institutions, governments, and various conferences and studies on Islamic banking (Conference of the Finance Ministers of the Islamic Countries held in Karachi in 1970, the Egyptian study in 1972, The First International Conference on Islamic Economics in Mecca in 1976, and the International Economic Conference in London in 1977) were the instrumental in applying the application of theory to practice for the first interest-free banks.[18][19]                    There are several other approaches used in business transactions. Islamic banks lend their money to companies by issuing floating rate interest loans. The floating rate of interest is pegged to the company's individual rate of return.               \begin{threeparttable}     \caption{\footnotesize  Difference in concept of interest and tax under Islamic finance}     \label{tab:diffriba}     \small     \singlespacing     \begin{tabularx}{\textwidth}{lXX}     \toprule     & \multicolumn{1}{c}{Islamic Banking} & \multicolumn{1}{c}{Conventional Banking}\\ \midrule     I- & Profit & Riba\\ \cmidrule{2-3}     & Determined a posteriori , pro rata of the profit. It is a percentage of the profit generated by the project outcome. & Defined a priori, and is guaranteed to the lender regardless of the outcome of the project financed. \\ \midrule     II- & Zakat & Tax \\ \cmidrule(l){2-2} \cmidrule(r){3-3}     & Means clean and growth                  & Mean Debt, burden.\\     & Paid to poor only                       & Finance the government spending.\\     & Yearly basis                            & Yearly basis\\     & The wealth exceeding certain threshold. & Net Income. \\     & Fixed to 2.5\%                          & Differs according to the tranche.\\     & Imposed based to productive Assets.     & All assets \\      \bottomrule     \end{tabularx}     \end{threeparttable}          \end{document}


title: How to write multiline in a cell of table in latex?

text: I have multiline table.                 \documentclass[11pt,table,a5paper]{article}       \usepackage[top=2cm, bottom=2cm, outer=2.1cm, inner=1cm,twoside, headsep=26pt]{geometry}       \usepackage{collcell}       \usepackage{longtable}       \usepackage{color}       \usepackage{colortbl}       \begin{document}       \definecolor{textcol}{rgb}{.118, .565, 1.00}       \definecolor{rowcol}{rgb}{.218, .565, 1.00}       \textbf{Antioxidant/Longevity }         ~\\         {\renewcommand{\arraystretch}{1.8}\begin{longtable} {|p{2.8cm}|p{4.7cm}|p{1cm}|p{2.1cm}|}        \hline        \rowcolor{textcol}        \textbf{\textcolor{white}{Title1}} &\textbf{\textcolor{white}{Title2}}  &\textbf{\textcolor{white}{Title3}} &\textbf{\textcolor{white}{Title4}}\\       \hline       \rowcolor{rowcol}        54880/RET2& -& 1&-\\       \hline       \rowcolor{rowcol}        rs5746136/SOD2& First Line~\\       ~\\       Second Line & 1& some text\\       \hline       \end{longtable}}       \end{document}      ![enter image description here](http://i.stack.imgur.com/krCgz.png) But output is not multiline. How can i fix this pblm?


title: Using different Maths Font in LaTex

text: I am using Fedora 13 and it had TeXLive 2007 by default. I installed texlive and then i wanted to use the mathspec package which TeXLive 2007 version doesn't seem to have. Cany anyone tell me as to how to install "Mathspec" package in Linux.


title: Include .Rtex as a chapter in latex

text: I have an Rtex that contains:               \documentclass[openany]{book}     \chapter{Introduction}     \input{./Introduction/Introduction}          \chapter{Thesis Outline}     \input{./Outline/Outline_Chapter}          \bibliographystyle{plainnat}     \bibliography{./References/Upgrade}          \end{document}      I was to include some R code into the file "./Outline/Outline_Chapter". Is there any way to have that as Outline_Chapter.Rtex and still be input/included to the overall document?


title: Latex templates for project management tasks

text: Where can I find latex templates for project management tasks like work- breakdown structure doc, CPM/PERT diagrams, final project reports etc ? Examples here: link1 link2 link3 link4 link5


title: How to set TikZ figure size and font size to match my doc?

text: After some configuration nightmare i've managed to print out GNU Octave plots (via gnuplot) to tikz-pgf and display it in my LyX document..               %& -shell-escape -enable-write18          \documentclass{article}          \usepackage{tikz}     \usepackage{gnuplot-lua-tikz}     \usetikzlibrary{shapes,arrows}          \begin{document}          \begin{tikzpicture}[gnuplot, scale = 1]          %% generated with GNUPLOT 4.6p0 (Lua 5.1; terminal rev. 99, script rev. 100)     %% Sun Jun 10 03:14:21 2012     \path (0.000,0.000) rectangle (8.000,6.000);     \gpcolor{color=gp lt color border}     \gpsetlinetype{gp lt border}     \gpsetlinewidth{0.50}     \draw[gp path] (1.012,0.985)--(1.263,0.985);     \draw[gp path] (7.447,0.985)--(7.196,0.985);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node right,font={\fontsize{10pt}{12pt}\selectfont}] at (0.828,0.985) {0};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,1.759)--(1.263,1.759);     \draw[gp path] (7.447,1.759)--(7.196,1.759);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node right,font={\fontsize{10pt}{12pt}\selectfont}] at (0.828,1.759) {0.5};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,2.534)--(1.263,2.534);     \draw[gp path] (7.447,2.534)--(7.196,2.534);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node right,font={\fontsize{10pt}{12pt}\selectfont}] at (0.828,2.534) {1};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,3.308)--(1.263,3.308);     \draw[gp path] (7.447,3.308)--(7.196,3.308);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node right,font={\fontsize{10pt}{12pt}\selectfont}] at (0.828,3.308) {1.5};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,4.082)--(1.263,4.082);     \draw[gp path] (7.447,4.082)--(7.196,4.082);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node right,font={\fontsize{10pt}{12pt}\selectfont}] at (0.828,4.082) {2};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,4.857)--(1.263,4.857);     \draw[gp path] (7.447,4.857)--(7.196,4.857);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node right,font={\fontsize{10pt}{12pt}\selectfont}] at (0.828,4.857) {2.5};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,5.631)--(1.263,5.631);     \draw[gp path] (7.447,5.631)--(7.196,5.631);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node right,font={\fontsize{10pt}{12pt}\selectfont}] at (0.828,5.631) {3};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,0.985)--(1.012,1.236);     \draw[gp path] (1.012,5.631)--(1.012,5.380);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{10pt}{12pt}\selectfont}] at (1.012,0.677) {0};     \gpcolor{color=gp lt color border}     \draw[gp path] (2.085,0.985)--(2.085,1.236);     \draw[gp path] (2.085,5.631)--(2.085,5.380);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{10pt}{12pt}\selectfont}] at (2.085,0.677) {0.5};     \gpcolor{color=gp lt color border}     \draw[gp path] (3.157,0.985)--(3.157,1.236);     \draw[gp path] (3.157,5.631)--(3.157,5.380);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{10pt}{12pt}\selectfont}] at (3.157,0.677) {1};     \gpcolor{color=gp lt color border}     \draw[gp path] (4.230,0.985)--(4.230,1.236);     \draw[gp path] (4.230,5.631)--(4.230,5.380);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{10pt}{12pt}\selectfont}] at (4.230,0.677) {1.5};     \gpcolor{color=gp lt color border}     \draw[gp path] (5.302,0.985)--(5.302,1.236);     \draw[gp path] (5.302,5.631)--(5.302,5.380);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{10pt}{12pt}\selectfont}] at (5.302,0.677) {2};     \gpcolor{color=gp lt color border}     \draw[gp path] (6.375,0.985)--(6.375,1.236);     \draw[gp path] (6.375,5.631)--(6.375,5.380);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{10pt}{12pt}\selectfont}] at (6.375,0.677) {2.5};     \gpcolor{color=gp lt color border}     \draw[gp path] (7.447,0.985)--(7.447,1.236);     \draw[gp path] (7.447,5.631)--(7.447,5.380);     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{10pt}{12pt}\selectfont}] at (7.447,0.677) {3};     \gpcolor{color=gp lt color border}     \draw[gp path] (1.012,5.631)--(1.012,0.985)--(7.447,0.985)--(7.447,5.631)--cycle;     \gpcolor{rgb color={0.000,0.000,0.000}}     \node[gp node center,font={\fontsize{12pt}{12pt}\selectfont}] at (4.229,0.215) {$\partial$};     \gpcolor{rgb color={0.000,0.000,1.000}}     \gpsetlinetype{gp lt plot 0}     \draw[gp path] (1.012,0.985)--(1.227,1.140)--(1.441,1.295)--(1.656,1.450)--(1.870,1.604)%       --(2.085,1.759)--(2.299,1.914)--(2.514,2.069)--(2.728,2.224)--(2.943,2.379)--(3.157,2.534)%       --(3.372,2.689)--(3.586,2.843)--(3.801,2.998)--(4.015,3.153)--(4.230,3.308)--(4.444,3.463)%       --(4.659,3.618)--(4.873,3.773)--(5.088,3.927)--(5.302,4.082)--(5.517,4.237)--(5.731,4.392)%       --(5.946,4.547)--(6.160,4.702)--(6.375,4.857)--(6.589,5.012)--(6.804,5.166)--(7.018,5.321)%       --(7.233,5.476)--(7.447,5.631);     %% coordinates of the plot area     \gpdefrectangularnode{gp plot 1}{\pgfpoint{1.012cm}{0.985cm}}{\pgfpoint{7.447cm}{5.631cm}}     \end{tikzpicture}     %% gnuplot variables               \end{document}      ![enter image description here](http://i.stack.imgur.com/9k8Ar.png) Now I have two questions:   * How to scale the whole image, such that it's width matches my LyX text width?   * How to set the figure's font size in terms of multiples of the LyX text font size? Help is much appreciated.


title: First occurrence of a command

text: I'm writing some macros that need to behave differently after first occurrence. I decided to use the `etoolbox` package's `toggle`. My MWE is as follows:               \documentclass{article}     \usepackage{etoolbox}          \newtoggle{SL}          \newcommand{\SL}{%       \textit{SL}%       \nottoggle{SL}{~first}{~second}%       \toggletrue{SL}% switches to true after first occurrence!     }          \begin{document}     A footnote.\footnote{\SL}\par     \SL \par     \SL \par     \SL     \end{document}      As an output I get the following: ![MWE](http://i.stack.imgur.com/Waud7.png) The problem, as you can see, is that when using the command in a footnote, the toggle does not occur. (Should the image not be clear enough, the footnote reads "1 SL first".) What is going on in here? (I tried TeX's `\newif` with the same result, by the way.)


title: Viva preparation document

text: In one of the doctoral thesis howto books (Rugg and Petrie, I think) the advice given is to prepare a document that summarises one page of your thesis per line of page. I'm interested in working with LaTeX (I used XeLaTeX, memoir and BibLaTeX/Biber to generate my humanities thesis) to create such a summary document. I don't want to create such a document on a trial and error basis - writing a line of text, compiling, checking, reviewing and revising. My question is what packages and customisation might be helpful to accomplish my goal? I would want the summary page to refer to the thesis page and then the rest of the line to be filled with my précis of the page.


title: How to add a favicon to a TeX/PDF file

text: Most web sites have a favicon, that gets displayed in the address bar of a browser. Is it possible to do the same with a PDF file?


title: Why does \includegraphics fail when using TikZ's externalization?

text: I'm trying to use `\includegraphics` and the `auto-pst-pdf` package to convert and import an EPS file, but when I enable TikZ's `external` library, `\includegraphics` fails with an error message:               Package tikz Error: Sorry, the system call 'pdflatex -shell-e     scape -halt-on-error -interaction=batchmode -jobname "images/exports/EPSMods-fi     gure0" "\def\tikzexternalrealjob{EPSMods}\input{EPSMods}"' did NOT result in a      usable output file 'images/exports/EPSMods-figure0' (expected one of .pdf:.jpg:     .jpeg:.png:). Please verify that you have enabled system calls. For pdflatex, t     his is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or somet     hing like that. Or maybe the command simply failed? Error messages can be found      in 'images/exports/EPSMods-figure0.log'. If you continue now, I'll try to type     set the picture.      When I try to prevent externalization of the offending picture with `tikzexternaldisable`, I get the same result. Is there a way to use `auto-pst-pdf` and TikZ's `external` library at the same time (and independently of one another)? * * *               \documentclass{article}          \usepackage{auto-pst-pdf}     \usepackage{graphicx}     \usepackage{psfrag}     \usepackage{tikz}          \usetikzlibrary{external}     \tikzexternalize[prefix=images/exports/]     %\tikzset{external/force remake}   % Uncommenting this generates the error every time          \begin{document}          \begin{tikzpicture}     \node {root}         child {node {left}}         child {node {right}           child {node {child}}           child {node {child}}         };     \end{tikzpicture}          \bigskip{}          {\tikzexternaldisable       % Removing this causes the third figure to appear in place of this one     \begin{tikzpicture}         % Shouldn't this picture  behave as it would in the absence of the `external` library?     \psfrag{Z}{$Q=\Sigma_X$}     %\psfragfig{GraphA}         % GraphA is an EPS file being processed by `auto-pst-pdf`; this works     \includegraphics{GraphA}    % This fails, even if wrapped in a node     \end{tikzpicture}      }          \bigskip{}          \begin{tikzpicture}     \node {A}         child {node {B}}         child {node {C}           child {node {D}}           child {node {X}}         };     \end{tikzpicture}          \end{document}      * * *                article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     auto-pst-pdf.sty    2009/04/26 v0.6 Wrapper for pst-pdf        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)      xkeyval.sty    2008/08/13 v2.6a package option processing (HA)      xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)     ifplatform.sty    2010/10/22 v0.4 Testing for the operating system     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     catchfile.sty    2011/03/01 v1.6 Catch the contents of a file (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     EPSIncludeBug.w18      pst-pdf.sty    2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     pstricks.sty    2011/10/31 v0.52 LaTeX wrapper for `PSTricks' (RN,HV)     pstricks.tex    2012/03/11 v2.27 `PSTricks' (tvz,hv)     pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)       pst-fp.tex    2012/03/11 v2.27 `PST-fp' (hv)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      preview.sty    2010/02/14 11.86 (AUCTeX/preview-latex)        dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)      environ.sty    2008/06/18 v0.2 A new way to define environments       psfrag.sty    1998/04/11 v3.04 PSfrag (MCG)         tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)          pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)       pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)       pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)       pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)      pgfkeys.sty          pgfkeys.code.tex       pgffor.code.tex         tikz.code.tex     supp-pdf.mkii     EPSIncludeBug-pics.pdf    Graphic file (type pdf)


title: Can I disable italics in the body text of a theorem without amsthm/ntheorem?

text: I'm submitting a paper and am required to use a provided document class which defines its own theorem environments, so I can't use packages like `amsthm` or `ntheorem`. The class doesn't define a 'Definition' theorem environment, so I defined my own. I'm trying to get the body text not to be in italic, just like `\theoremstyle{definition}` does. Is there a way to do it?


I have a problem compiling an article using `natbib`. I am using WinEdt to compile, for example this what I found online:               \begin{filecontents*}{bibtest.bib}     @book{goossens93,             author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",             title = "The Latex Companion",             year = "1993",             publisher = "Addison-Wesley",             address = "Reading, Massachusetts"     }     \end{filecontents*}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \documentclass{book}     \usepackage{natbib}          \begin{document}     \cite{goossens93}          \bibliographystyle{plain}     \bibliography{bibtest}          \end{document}      I do: `Shift`+`Ctrl`+`L` (`latex`) `Shift`+`Ctrl`+`L` (`latex`) `Shift`+`Ctrl`+`B` (`bibtex`) `Shift`+`Ctrl`+`L` (`latex`) `Shift`+`Ctrl`+`L` (`latex`) and finally `Shift`+`Ctrl`+`D` (`dvips`), `pspdf` And in the `pdf` I don't get the name of the cited authors but I get instead: `(?)` Also I get an error when I do `Shift`+`Ctrl`+`L`: > "! LaTeX Error: File 'natbib.sty' not found" I do not know how to fix that because `natbib.sty` is in the folder: *\MiKTeX 2.9\tex\latex\natbib I will very much appreciate your help, thank you!


title: \widthof within tikzpicture

text: In this minimal example               \documentclass{scrartcl}           \usepackage{calc}      \usepackage{tikz}           \newlength{\TestLength}           \begin{document}               \setlength{\TestLength}{\widthof{\tikz \node {bla};}}          \showthe\TestLength% MEASUREMENT 1               \begin{tikzpicture}                  \setlength{\TestLength}{\widthof{\node {bla};}}                  \showthe\TestLength% MEASUREMENT 2          \end{tikzpicture}           \end{document}      `\TestLength` is calculated correctly in the first time (MEASUREMENT 1), but too small in the second time (MEASUREMENT 2). I'd like to calculate it within a tikzpicture environment, so that I'm fixed to the second way of calculation. is there any workaround? Thanks a lot for any kind of comments or ideas.


title: How to place a running header and a footer to the page with chapter/section heading?

text: Some people wants to remove running headers and footers from the pages, where a chapter or a section is begining. But I'd like to _stay_ it in place. How can I make it? (I use KOMA-Script (scrbook) and scrpage2.)