title: Font Size and Font Style

text: I want to have different font size for chapter 1 and its name . means chapter 1 lets suppose in font size 17 and its name lets say Introduction in size 25. I can not do the by               \newcommand{\chaptersize}{\fontsize{25}{12}\selectfont}      Here is some code               \documentclass[a4paper,12pt,twoside,openright]{report}     %\usepackage[dvips]{color}     %\usepackage[T1]{fontenc}     \usepackage{times}     \usepackage{setspace}     \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,right=2.5cm,includefoot,asymmetric]{geometry}     \usepackage[centertags]{amsmath}     %\usepackage{amsfonts}     \usepackage{amssymb}     %\usepackage{amsthm}     %\usepackage{newlfont}     %\usepackage{epsf}     \usepackage{algorithmic}     \usepackage{algorithm}     \usepackage{xthesis}     \usepackage{xtocinc} %Include Table of Contents as the first entry in TOC     %     \usepackage{graphicx}     \usepackage{subfigure}     \usepackage[section,subsection,subsubsection]{extraplaceins}     \usepackage{longtable}     %\usepackage{url}     \usepackage{verbatim}     \usepackage[parfill]{parskip}     \usepackage{fancyhdr}     \pagestyle{fancy} \lhead{} \chead{} \rhead{} \lfoot{}     \cfoot{\thepage} \rfoot{}     %\usepackage[utf8]{inputenc}     \usepackage[backend=biber,authordate]{biblatex-chicago}     \makeatletter     \AtEveryBibitem{%       \global\undef\bbx@lasthash%       \clearfield{extrayear}}     \makeatother      \addbibresource{Xbib.bib}     \DeclareFieldFormat[article]{title}{\mkbibquote{#1}} % make article titles in quotes     \DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}} % make theses italics       \newenvironment{changemargin}[1]{       \begin{list}{}{         \setlength{\voffset}{#1}       }       \item[]}{\end{list}}     \makeatother          %\newcommand{\red}[1] {\textcolor{red}{#1}}     %\newcommand{\blue}[1] {\textcolor{blue}{#1}}          \newtheorem{theorem}{Theorem}[section]     \newtheorem{claim}{claim}[section]     \newtheorem{lemma}{Lemma}[section]     \newtheorem{exmp}{Example}[section]     \newtheorem{cor}{Corollary}[section]     \newtheorem{fact}{Fact}[section]     \newtheorem{prop}{Property}[section]     \newtheorem{assume}{Assumption}[section]     \newtheorem{definition}{Definition}[section]     \newtheorem{invariant}{Invariant}[section]     \newtheorem{con}{Conjecture}[section]     \newtheorem{open}{Problem}[section]     \newcommand{\chaptersize}{\fontsize{25}{12}\selectfont}          \def\insert{\mbox{\rm insert}}     \def\rotate{\mbox{\rm rotate}}     \def\op{\mbox{\rm op}}     \def\Proof{\noindent {\bf Proof.\ \ }}     \def\Remark{{\bf Remark.\ \ }}\def\ex{{\rm ex}}          \def\qed{\ifhmode     \unskip\nobreak\hfill\vrule height5pt width4pt depth2pt\medskip\fi     \ifmmode\eqno{\vrule height5pt width4pt depth2pt}\fi}     \def\qed{\ifhmode\unskip\nobreak\fi\quad\ifmmode\Box\else$\Box$\fi}                    %\hoffset=.2in     %\voffset=-.02in     %\textwidth=390pt               \begin{document}     \singlespacing     %\thispagestyle{empty}          %\setlength{\textheight}{297mm}     %\setlength{\oddsidemargin}{-6mm}     %\setlength{\textwidth}{210mm}     %\setlength{\oddsidemargin}{35mm}     %\setlength{\evensidemargin}{35mm}     %\setlength{\topmargin}{25mm}     %\setlength{\footskip}{25mm}     %\listoftables     %\listoffigures     \phd     \title{ }               %\{Thesis Document}     \dedicate{ }          \author{ }          %\superviser{}          {     \typeout{:?000000000} % Don't bother with over/under-full boxes     \beforepreface     \typeout{:?111111111} % Process All Errors from Here on     }     % ------------------------------------------------------------------------     %\include{Abs}     %\include{Ack}          %\tableofcontents     % ------------------------------------------------------------------------     %\listoftables     % ------------------------------------------------------------------------     %\listoffigures     % ------------------------------------------------------------------------     {\typeout{Publications}     \include{Pub}     }     {\typeout{Nomenclature}     \include{NOM}     }     % ------------------------------------------------------------------------     \afterpreface     %\def\baselinestretch{1}     \printbibliography     \end{document}      thats the complete code


title: How to reset sidenote numbering in chapters? (Tufte-LaTeX)

text: I've looked at this question: How to reset footnote numbering at \chapter* and at frontmatter chapters?, but the answers concern using `\chapter*`, and assume the OP is not using the `Tufte-LaTeX` package. I use `\chapter` to indicate the start of a new chapter in `Tufte-LaTeX`; my `sidenote` numbers are not reset between chapters, and I would like to do so. Here is a MWE, using the first suggestion. Unfortunately the sidenote in chapter 2 starts at 2.               \documentclass{tufte-book}          \makeatletter% so we can use @ in the command name     \@addtoreset{footnote}{chapter}% restart the sidenote counter for each chapter     \makeatother% resets the meaning of @          \begin{document}          \chapter{ONE}     TEST\sidenote{footnote \#1}          \chapter{TWO}     LOOK\sidenote{footnote \#2}          \end{document}


title: How to add new fonts to MacTeX 2013

text: I know how to install the three adobe fonts: MinionPro, MyriadPro and MnSymbol in a Mac (OS 10.6, 10.7, 10.8 and 10.9) where MacTeX 2010 is already installed. This can be done following the steps:   1. Download texmf.cnf and texmf-extra in Desktop (these two files can be found in MinionPro-Installation)   2. Enter in a terminal shell   3. Command: sudo /bin/bash   4. Enter password   5. Command: mv /Users//Desktop/texmf-extra /usr/local   6. Command: mv /Users//Desktop/texmf.cnf /usr/local/texlive/2010/texmf/web2c   7. Command: export PATH=/usr/texbin:$PATH   8. Command: updmap-sys --edit   9. Add in the end of the edited file the following three lines: Map MinionPro.map Map MyriadPro.map Map MnSymbol.map   10. Save and wait for reconfiguration of the system - Until you get "updmap: Done"  Unfortunately these steps do not work with MacTex 2013. Apparently, step 6 has to change to: mv /Users//Desktop/texmf.cnf /usr/local/texlive/2013/texmf/web2c but still this does not help. Can anybody help?


title: How can I have sections and subsections aligned in the table of contents?

text: ![tableofcontents](http://i.stack.imgur.com/s6KsW.png)               \documentclass[12pt,headings]{article}     \begin{document}     \tableofcontents     \section{section A}     \subsection{subsection A}     \subsection{subsection B}     \end{document}      I want section A and subsection A,B to be aligned in the table of contents


title: Vertical alignment of degree unit and other elements in table

text: I am trying to improve the appearance of the below table such that:   1. The set union symbols `\cup` align vertically with the commas from the 2nd and last rows   2. The middle column angle values are still centered, but vertically aligned to the `\degree` sign The code that generates the table is:               \usepackage{siunitx}     \usepackage{gensymb}     \usepackage{dcolumn}     \usepackage{multirow}     \usepackage{booktabs}          \begin{document}          \begin{table}     \centering     \begin{tabular}{ccr}     \toprule     \rule[-0.6em]{0pt}{1.7em} Elevation range & Azimuth resolution & \multicolumn{1}{c}{$N$} \\ \hline     \rule{0pt}{1.4em} $[-40\degree,40\degree]$             & $5\degree$     & 1224 \\         $(-60\degree,-40\degree) \cup (40\degree,60\degree)$ & $8\degree$   & 270 \\         $(-70\degree,-60\degree] \cup [60\degree,70\degree)$ & $10\degree$  & 144 \\         $(-80\degree,-70\degree] \cup [70\degree,80\degree)$ & $15\degree$  & 96  \\         $(-90\degree,-80\degree] \cup [80\degree,90\degree)$ & $30\degree$  & 48  \\     \rule[-0.5em]{0pt}{0.5em} $-90\degree,90\degree$         & $360\degree$ & 2   \\     \bottomrule     \end{tabular}     \end{table}          \end{document}      The table looks like:![enter image description here](http://i.stack.imgur.com/slMdb.jpg) I would like it to look like:![enter image description here](http://i.stack.imgur.com/KzGRO.jpg)


title: Creating a edge-trigger symbol in LaTeX

text: Does anyone know how to create an edge-trigger symbol in LaTeX? I need to to show that some thing activates on the negative clock edge of a signal, but in a paragraph, not in a timing table.


title: String scattering diagrams with TikZ or other package in LaTeX

text: I am working on a paper and I need in the introduction to put a diagram. The diagram is the following (or something similar) and I was wondering how can I reproduce it in LaTeX code.![Diagram of a string scattering process](http://i.stack.imgur.com/1dBza.png)


title: Pointing to a node with calculated name, why do I get to the east, not to the center?

text: It seems like I'm doing something wrong when using `foreach` variables to indicate node numbers. The two foreach loops are anchoring the paths to the east of each node. Why does this happen? ![example output](http://i.stack.imgur.com/36XpL.png)               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{backgrounds,fit,patterns,decorations.pathreplacing,calc}          \makeatletter     \tikzset{       labelnode/.style={draw=none, fill=none, black},       latentnode/.style={draw, minimum width=5mm, shape=circle, ultra thick, black},       dagconn/.style={arrows=->, black, thick},     }     \makeatother          \begin{document}     \begin{tikzpicture}[scale=1]      \pgfmathsetmacro{\colgap}{1.6}      \pgfmathsetmacro{\rowgap}{1.3}           \node[labelnode] (x1) at (\colgap*0,\rowgap*1) {$X_1$};      \node[labelnode] (x2) at (\colgap*1,\rowgap*1) {$X_2$};      \node[labelnode] (x3) at (\colgap*2,\rowgap*1) {$X_3$};           \node[latentnode,blue] (x4) at (\colgap*0,\rowgap*0) {$X_4$};      \node[latentnode,red] (x5) at (\colgap*1,\rowgap*0) {$X_5$};      \node[labelnode] (x6) at (\colgap*2,\rowgap*0) {$X_6$};           \foreach \c in {1,...,2} {        \foreach \r in {1,...,2} {          \pgfmathsetmacro{\st}{(((\r-1)*3)+\c)}          \pgfmathsetmacro{\en}{\st+1}          \draw[dagconn] ([xshift=0.2cm]x\st) to ([xshift=-0.9cm]x\en);        }      }           \foreach \c in {1,...,3} {        \foreach \r in {1,...,1} {          \pgfmathsetmacro{\st}{((\r-1)*3)+\c}          \pgfmathsetmacro{\en}{\st+3}          \draw[dagconn] (x\st) to (x\en);        }      }     \end{tikzpicture}     \end{document}


title: Using \color in a paragraph column inside a tabular environment results in a line break

text: Some of my documents are compiled into multiple outputs. Some Versions contain certain parts, while other versions contain only a placeholder. For this purpose I have a macro `\markup` that colors its argument red in some versions and omits it in others. Obviously that macro should work just about anywhere, for example in normal text, inside tables, in captions or headlines, etc. Now when I use `\markup` (or just `\color`) in a `p` column inside a `tabular` environment, it creates an odd line break that shouldn't really be there. When used in other column types such as `c`, there is no line break: ![Broken line breaks](http://i.stack.imgur.com/Jfqnx.jpg) I know I could use `\textcolor` instead of `\color` (which fixes the issue) but then my macro wouldn't work when the argument contains paragraphs, since `\textcolor` is not `\long`. Are there other ways to fix that weird linebreak, accept lone arguments, and still have a macro that works in (nearly) all situations?               \documentclass[margin=1pt]{standalone}     \usepackage{xcolor}          % The actual \markup macro is a bit more complicated and contains an \if     \newcommand\markup[1]{{\color{red}#1}}          \begin{document}     \begin{tabular}{| p{2cm} | c |}              \hline             p\{2cm\}   & c          \\ \hline             \markup{1} & 2          \\ \hline             3          & \markup{4} \\ \hline     \end{tabular}     \end{document}


title: Overlapping nodes in tikz

text: I used to make a chain diagram in tikz, like described in the manual p. 59 ff, but in contrast to the manual, my nodes are overlapping. I tried to use the "node distance" option but i doesn't seem to work. Below is the minimal working example (writeLatex.com):               \documentclass[12pt]{scrartcl}          \usepackage{tikz}          \begin{document}          \begin{figure}[tb]         \begin{center}         \begin{tikzpicture}[                 % copy to preamble to use it everywhere \tikzset{node/.style...}                 node/.style={                     % shape                     rectangle,                     rounded corners=1mm,                     minimum size=6mm,                     %border                     thick,                     draw,                 },                 dummy/.style={                     % shape                     rectangle,                     rounded corners=1mm,                     minimum size=6mm,                     %border                     thick,                 },                 node distance=10mm                 ]                 \node(wadl)[node]{WADL-Datei};                 \node(xsd1)[node,below left of=wadl]{XSD-Datei};                 \node(...)[dummy,below of=wadl]{\ldots};                 \node(xsd3)[node,below right of=wadl]{XSD-Datei};                 \node(test)[node,right of=wadl]{test};                      \path(wadl) edge[->] (test);             \end{tikzpicture}            \end{center}         \caption{Codegeneratorsystem}         \label{fig:codegeneratorsystem}     \end{figure}          \end{document}      ![enter image description here](http://i.stack.imgur.com/pgli1.jpg)


title: title of a colored box

text: In an another post, beamer style text box, I've seen a box that I'm interested in making it. However, I would like to use it in a book, and I would like **before** the title to write: Definition (or Example) and then the number of the chapter and at the end the title. For example: Definition 2.1:Good (when I'm on the second chapter, I'm giving the first definition here of the good) What would be the code? Also how could we add a list of definitions after the table of contents?


title: How can I loop back to a slide after showing conditional slides in Beamer?

text: I am working on a presentation that has conditional slides, using the formatting suggested here: Conditionally hidden slides in beamer I would like to be able to continue with my presentation after the conditional slides using some sort of loop technique that does not require pressing a button at the end of the conditional slides. Two options I have imagined would be possible that I do not know how to implement are 1) skipping the conditional slides entirely if the button is not clicked, else have the slides show in the middle of the presentation, or 2) at the end of the slides do some sort of "on click" command that links back. 1)               \documentclass{beamer}     \usetheme{Warsaw}     \title{The Title}     \author{The Author}     \date{\today}     \begin{document}     \section{One}     \begin{frame}     I suspect someone might ask about supplemental material     \hyperlink{supplemental}{\beamerbutton{here}}.     \end{frame}     \begin{frame}[label=supplemental] %(Hide these slides)     Supplemental content.     \end{frame}     \begin{frame}     Slides continue after supplemental material     \end{frame}     \end{document}      2)               \documentclass{beamer}     \usetheme{Warsaw}     \title{The Title}     \author{The Author}     \date{\today}     \begin{document}     \section{One}     \begin{frame}     I suspect someone might ask about supplemental material     \hyperlink{supplemental}{\beamerbutton{here}}.     \end{frame}     \begin{frame}[label=aftersupplemental]     Slides continue after supplemental material     \end{frame}     \appendix     \begin{frame}[label=supplemental] %(Hide these slides unless the button is clicked)     Supplemental content.     \end{frame} %(On "next slide click" go back to aftersupplemental frame)     \end{document}


title: Is there any compiler-dependent font loadable for pdflatex but not for latex-dvips-ps2pdf?

text: I want to make sure that I can load the same fonts for each input file either for diagrams and text contents. It is related to my statement below, > Even though PSTricks cannot work with `pdflatex` directly, it really does > not bother us because the agile users (who adopt the best practice paradigm, > "separation of concern") know that diagrams should be separated from the > text contents. It means that each diagram should be put in a separate, > standalone, yet compilable input file. For PSTricks, this diagram's input > file must be compiled by `latex-dvips-ps2pdf` sequence. The product of it is > a diagram in PDF format which is consumable to `pdflatex` used to compile > the main input file (i.e., the input file containing the text document). > Does it make sense? and > We can create our own package `common.sty` just to load the common settings > (fonts, etc). This package then can be loaded from within each input file, > either for diagrams or text document. So font (as well as other common > settings) used in the diagram is exactly identical to one used in text > document. So is there any font that can only be loaded for `pdflatex` but not for `latex-dvips-ps2pdf`? If there is no such a font, I am in a safe position.


title: Please, don't do that!

text: We often think that changing this or that will improve the layout or readability of a page or entire document, but sometimes we shouldn't. Which typographical choices does LaTeX make that we shouldn't interfere with?


title: How do you define a command for use in a tikzpicture environment?

text: I want to define an environment for the tikzpicture environment which defines tikz specific commands. Here's an abbreviated example for a UML environment which defines a `\Class` command):               \newenvironment{UMLDiagram}{%         \newcommand{\Class}[3]{\node[class](##1){##2\nodepart{second}{##3}};}%         \begin{tikzpicture}[%             class/.style={draw, rectangle split, rectangle split parts=2, align=left}%         ]%     }{%         \end{tikzpicture}%     }      I wanted to use this the following way:               \begin{UMLDiagram}         \Class{id}{ClassName}{attributeA=a\\attributeB=b}     \end{UMLDiagram}      This---not entirely unexpected---throws an error: > ! Undefined control sequence tizk@invoke@collected@onpath ...mmand > \tikz@temp \pgf@stop (...) However, a command with a single argument did not fail. So, how do you do this? Or, on a related note, does tikz provide a mechanism for tikz specific command definitions? * * * **MWE**               \documentclass{minimal}          \usepackage{tikz}     \usetikzlibrary{shapes}          \newenvironment{UMLDiagram}{%         \newcommand{\Class}[3]{\node[class](##1){##2\nodepart{second}{##3}};}%         \begin{tikzpicture}[%             class/.style={draw, rectangle split, rectangle split parts=2, align=left}%         ]%     }{%         \end{tikzpicture}%     }          \begin{document}          \begin{UMLDiagram}         \Class{id}{ClassName}{attributeA=a\\attributeB=b}     \end{UMLDiagram}          \end{document}      * * * **Follow Up** The solution that worked for me was the use of a tabular environment within the node label as provided here.                   \newenvironment{UMLDiagram}{%         \newcommand{\Class}[3]{             \node[class](##1){%                 ##2%                 \nodepart{second}%                 \begin{tabular}{l}##3\end{tabular}%             };         }%         \begin{tikzpicture}[%             class/.style={draw, rectangle split, rectangle split parts=2, align=left}%         ]%     }{%         \end{tikzpicture}%     }      The `align=left` and `\\\` pattern would have been favorable but it did not work in this case.


title: GBR and FEN printout

text: How can I print the `GBR-code` and the `FEN` of the current position of `\chessboard` into the document? Is this possible for instance for `FEN` without the transfer from `\chessboard` to `\chessgame` with the help of the keys `storefen` and `restorefen` and the following command `\boardasfen` from the `skak` package? Up to now I don't know any command to output the `GBR-code` within the existing chess packages for LaTeX. Any help would be kindly appreciated!


title: Why do images in pdf not render the same on the screen and how to fix it?

text: My images look awful in the final pdf. If I keep increasing the dpi, this doesn't help, and sometimes makes the image look worse. I understand that if I had a vectorized image it would solve my problem, but using Inkscape and outputting a *.png file is simple and guaranteed to work. The image below shows how the same file rendered in an image viewer vs. the pdf are very different. Notice how the red line disappears in the center. Image resolution for this example was 440dpi. ![enter image description here](http://i.stack.imgur.com/Mud1u.png) Is there a package or option I should be using to get a better output? Is this the fault of the pdf viewer?


title: "Big Question" slide in beamer (Malmoe)

text: I'm using Malmoe, but this should be a general question. Typically, when I set a title for a slide, it gets special formatting. In Malmoe, that would be big, blue and fat. Say I want to have a slide where I only put one sentence in the center (A three liner question), and I want to have it the properties of that slide question - what would be an easy approach? Alternatively, maybe these style classes come with a special "bigAndIMportant" marker that one can use in slides - but quick research hasn't shown anything like this. In any way, I would like the sentence to be both vertical and horizontal centered. Does anyone know more on this issue? **Update** So here is some simple mockup:               % !TEX encoding = UTF-8 Unicode     % !TEX TS-program = pdflatexmk     \documentclass{beamer}         \usetheme{Malmoe}     \begin{document}        \begin{frame}{The Question}     Here is the question. It is so long that it will be broken over 2-3 lines when it is displayed big.      \end{frame}     \end{document}      I would like to emphasize the central text, such that it looks more "eye jumping" than normal text. However, I don't want to break the style. Maybe there is an attribut inside Malmoe (or beamer in general) that one can use for this? Or perhaps a way to make it look similar to the frame title ("The Question") - but it should still be distinguishable..


title: Figures caption

text: I am using `\subfigure` package to place two figures side by side. The following are the code lines for this purpose.               \begin{figure}     \centering     \mbox{\subfigure{\includegraphics[width=2in]{Figure 2a.png}}\quad     \subfigure{\includegraphics[width=2in]{Figure 2b.png} }}     \caption{FE model geometry and boundary conditions; (a) tension/compression, (b) simple shear} %\label{Fig. 2}     \end{figure}      The placement of figures (2a and 2b) are correct but with the caption of the figure `2a.png` and `2b.png` are appearing (before the caption) in the document. I tried many ways to remove them but havn't succeeded. Yours valuable suggestions are highly appreciated. Thanks


title: twoside page, outside border on right side smaller than on the left

text: I have to hand in my thesis tomorrow and it's not working. I want to print it like a book (print front and rear of a page). That's why I am using twopages. But the outside border is different for the right and the left page.   My code                \documentclass[a4paper,twoside,12pt]{article}      \usepackage[utf8]{inputenc}       \usepackage{fontenc}      \usepackage[hcentering,bindingoffset=9mm]{geometry}      \setlength{\oddsidemargin}{0.5cm}      \setlength{\textwidth}{15,5cm}      \setlength{\textheight}{23cm}      What do I have to change that the outside border of the riht and left page are the same size (and the inside border too)?   Thank you soooooooooooooooooo much!!!!!


title: Tikz: Division and Addition for Node Names

text: I am trying to draw a graph that is essentially just a long line with a triangle at one end and a square at the other end. I need there to be a chain of length 26 between the triangle and the square. When I tried with the code below, I got the error "Missing Number, treated as 0". Other attempts have told me that there are no nodes named "P0+1". How do I do division, addition, etc. on node names to iterate through them as I'd like?                   \begin{tikzpicture}         \foreach \x in {0,1,2,3,4,5,6,7,8,9,10,11,12}{         \node (P\x) at (-\x/2,0){};         }         \foreach \x in {13,14,15,16,17,18,19,20,21,22,23,24,25,26}{         \node (P\x) at ({\x-13}/2,0){};         }              \node (P27) at (14,1){};         \node (P28) at (14,-1){};         \node (P29) at (-14,1){};         \node (P30) at (-14,-1){};         \node (P31) at (-15,0){};                   \foreach \x in {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}{         \fill (P\x) circle (2pt);         }              \foreach \x in {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25}{         \draw[line width=1 pt] (P\x)--(P\x+1);         }              \draw[line width=1 pt] (P26)--(P27);         \draw[line width=1 pt] (P27)--(P28);         \draw[line width=1 pt] (P28) -- (P26);         \draw[line width=1 pt] (P13)--(P29);         \draw[line width=1 pt] (P29)--(P30);         \draw[line width=1 pt] (P30) -- (P31);         \draw[line width=1 pt] (P31) -- (P13);                   \draw (0,-3) node[below]{Figure 3.4};         \end{tikzpicture}


title: tikz-qtree: edge overlaps with nodes

text: I'm drawing a tree using the `tikz-qtree` package. There is a lot of text in the nodes. I'm finding it difficult to get the edges to meet the edge of the nodes. For some nodes with lots of text, the edge goes too far. Code is               \documentclass{minimal}     \usepackage{graphicx}     \usepackage{a4wide}          \usepackage{fullpage}     \usepackage{tikz}          \usetikzlibrary{shapes, positioning, shadows, trees}          \usepackage{tikz-dependency}     \usepackage{tikz-qtree}          \begin{document}     %===================================================          \centering     \begin{tikzpicture}          \tikzset{font=\small,     edge from parent fork down,     level distance=2.7cm,     every node/.style=     {top color=white,     bottom color=blue!10,     rectangle,rounded corners,     %minimum height=8mm,     draw=black,     thick,     align=center,     sibling distance = 4ex,        %text depth = 0pt     },     edge from parent/.style=     {draw=black,     thick     }}          \Tree [.Morphemes [.Free-standing [.Open-class {cat, chase, dog} ] [.Closed-class {(1) Pronouns; she, him\\(2) Determiners; the, this\\(3) Prepositions; on, at\\(4) Auxilary verbs;\\ \textit{have} done, \textit{is} doing} ] ]                   [.Bound [.Open-class NONE ] [.Closed-class                    [.Derivational {care-less\\un-wind} ] [.Inflectional {(1) Tense/Agreement marking on verbs;\\He go-es, They laugh-ed\\(2) Plural marking on nouns;\\dog-s, cat-s} ]                                    ]]     ]          \end{tikzpicture}                    %====================================================          \end{document}      This is what the overlap looks likes (below). Any hints warmly welcomed. ![overlap](http://i.stack.imgur.com/1F0ED.jpg)


title: How to automatically put the content of all the footnotes in one document

text: I wrote a dissertation with bibliographic references in footnotes, and I would like to organize them in a bibliography at the end of the dissertation (using Lyx). I could copy every single footnote and paste it in such a document, but it would take a lot of time. Would you know a way of automatically putting the content of every footnote in one single document, that I could organize in order to present it as my bibliography? Thanks a lot for your help!


title: LuaLaTeX - Linux libertine (math and pgfplots)

text: I have some problems using Linux libertine font within equations or pgfplots and tried this answer but it doesn't work.               \documentclass{article}     \usepackage{fontspec}     \usepackage{pgfplots}          \setmainfont{Linux Libertine O}     \setsansfont{Linux Biolinum O}     \usepackage{blindtext}     \begin{document}          \blindtext[1]          \begin{equation}     x = 4 \cdot 3      \end{equation}          \begin{tikzpicture}      \begin{axis}       \addplot {x};      \end{axis}     \end{tikzpicture}          \end{document}      ![](http://i.stack.imgur.com/jyFWw.png)


title: Space between images

text: I use `\\\` for line breaks like the followings. I am wondering if there are better ways to do rather than adding `\\\`. Thank you in advance for your help.               \documentclass[fleqn]{article}     \usepackage{graphicx}     \usepackage[export]{adjustbox}          \begin{document}     \begin{enumerate}       \item Find the unknown values and in each case, give a reason.               \begin{enumerate}         \item         \includegraphics[scale=0.6,valign=t]{images/image1.png}     \\     \\     \\     \\         \item         \includegraphics[scale=0.6,valign=t]{images/image2.png}     \\     \\     \\     \\         \item         \includegraphics[scale=0.6,valign=t]{images/image3.png}       \end{enumerate}     \end{enumerate}     \end{document}      My second day of LaTeX, yeah.


title: Nomenclature(nomencl) problem when submitting paper in Wiley

text: I have prepared a paper for submitting in wiley. I'm using nomencl package for nomenclature and it works fine. But when i upload my files in journal, the nomenclature won't create. How can i solve this issue?


title: Hyperlink between footnote mark (left after an author's name) and footnote text

text: I use `\thanks{}` to leave a footnote after an author's name. What I would like is that, when the reader clicks on the footnote mark, s/he be automatically taken to the associated footnote. Is that possible and, if the answer is yes, how?


title: How to center a tikz figure in a beamer frame

text: I was told to use the `standalone` package, which I use, but it does not seem to center the figure. What options to do I miss? Concretely, here is the main file:               \documentclass{beamer}     \usepackage{standalone}     \usepackage{tikz}     \usecolortheme{wolverine}          \begin{document}       \begin{frame}\frametitle{Title}                    \framesubtitle{Subtitle}            \centering            \includestandalone[               mode=tex,               width=1.3\textwidth,               height=0.8\textheight            ]{circle}        \end{frame}     \end{document}      While the included file is as simple as:               \documentclass[crop,preview,tikz]{standalone}     \begin{document}%       \begin{tikzpicture}%          \draw (0,0) circle (1cm);%        \end{tikzpicture}%      \end{document}      Unfortunately, this simple circle does not seem to be centered on the page. ![Output, showing that the included picture is not centered on the page](http://i.stack.imgur.com/raQQL.jpg) ~ Clarification: I do not mind the distortions, and the 130% scale is to demonstrate that the elongated circle is not centered, or else we would have the same overflow on both sides. I believe that the output demonstrates that the included picture is vertically centered though. BTW, this Tikz figure in Beamer shifting way to the right of the frame seems to be related, but `\noindent` and setting the `\parindent` to zero, do not seem to help here.


title: TikZ: Access coordinates of decorated paths?

text: Is it possible to access the coordinates of the decoration of some paths? I draw two paths, e.g., with:                  \begin{figure}[t]          \begin{tikzpicture}            \draw [red,decorate,decoration={crosses, segment length=1.05cm,                transform={shift only}}]                  {(4, 4) .. controls(6, 3.5) .. (8, 4)};            \draw [red,decorate,decoration={crosses, segment length=1.05cm,                transform={shift only}}]                  {(4, 4) .. controls(6, 4.5) .. (8, 4)};         \end{tikzpicture}        \end{figure}      Each of these paths contains some crosses I would like to connect with some arrows. If I could access the coordinates of the crosses, this would be quite simple. Is this somehow possible?


title: Circuitikz - IC circuit with relative coordinates

text: I've represented an IC circuit using circuitikz, but it's a bit too rough to what I prefer. In particular I would like to use relative coordinates in this case and connect them to the ``IC device'' so that I don't have to guess where to place components. I would also like to scale the figure and maintain the integrity of the circuit. (Remove scale = 1.4 to get the unbroken circuit) Any suggestions?               \documentclass{article}     \usepackage{tikz}     \usepackage[siunitx,european,american]{circuitikz}                \begin{document}     %----IC device: 555 astable timer, or square wave oscillator     \tikzstyle{icdev}=[draw, text width=6em, minimum height=8em]     \begin{tikzpicture}[every node/.style = {font = \footnotesize},scale = 1.4]         \draw (0,4)         to[short,o-] (0.8,4)         to[/tikz/circuitikz/bipoles/length=0.7cm,R] (0.8,2.4)         to[/tikz/circuitikz/bipoles/length=0.7cm,R] (0.8,1.8)         to[/tikz/circuitikz/bipoles/length=0.7cm,C] (0.8,0.2) -- (0.8,0)         to[short,-o] (0,0);         \node (digichip) [icdev,xshift=3cm,yshift=2cm] {};     % top terminal pins - 4 RESET, 8 Vcc         \path [draw](0.8,4) -| (2.5,3.4) node[below]{RESET} node[above left]{4};         \path [draw](2.5,4) -| (3.5,3.4) node[below]{$V_{cc}$} node[above left] {8};     % bottom terminal pins - 1 GND  , 5 CTRL         \path [draw](0.8,0) -| (2.5,0.6) node[above]{GND} node[below left]{1};         \path [draw](2.5,0) -- (3.5,0)             to[/tikz/circuitikz/bipoles/length=0.7cm,C](3.5,0.6)               node[above]{CTRL} node[below left]{5};     % leftside terminal pins - 7 DIS, 6 THR, 2 TRG         \draw (0.8,2.6) -- (1.83,2.6) node[right]{DIS} node[above left]{7}             (1.2,1.5) |- (1.83,2) node[right]{THR} node[above left]{6}             (0.8,1.5) -- (1.83,1.5) node[right]{TRG} node[above left]{2};     % rightside terminal pin - 3 out         \draw (4.17,2) node[left]{Out} -- (4.8,2) node[above left]{3};     \end{tikzpicture}     \end{document}      ![IC device - bad/good](http://i.stack.imgur.com/yRuvL.png)


title: Can I use \begingroup \endgroup as delimiter of \detokenize, instead of {}?

text: I would like to use other delimiters than `{}` for the argument of `\detokenize`. E.g. something like               \detokenize\begingroup a lot of stuff \com \mycom \endgroup      but it does not work. Am I really obliged to use curly braces ?


title: Cleaner Code for a Table design

text: in this question Showcase of beautiful wine bottle labels made with LaTeX/TikZ and friends I asked for wine bottle labels. Here is my own attempt. I still have to play with fonts. ![enter image description here](http://i.stack.imgur.com/WU4cZ.png) I'm quite happy with the design but not with the code. It is based on a table layout in a tcolorbox (for the background picture). So my question is: is it possible to achieve a design like my label with "cleaner code"? Maybe there is a cleaner solution without using tables? Here is my code so far:               \documentclass[a4paper]{memoir}     \usepackage[table,dvipsnames]{xcolor}     \usepackage[most]{tcolorbox}     \usepackage{tabularx}     \usepackage{booktabs}     \usepackage{ragged2e}     \usepackage{kpfonts}     \usepackage{PTSansCaption}      \usepackage{rotating}     \usepackage{multirow}     \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{soul}     \usepackage[]{graphicx}     \usepackage{array}     \usepackage{calc}     \newlength{\bls}     \setlength{\bls}{\baselineskip-\doublerulesep}               \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}               \sodef\an{}{.4em}{1em plus1em}{2em plus.1em minus.1em}               \tcbset{     bgtable/.style={     freelance,     frame code={\draw[] (interior.north west) -- (interior.north east);}     center title,     fonttitle=\bfseries\sffamily,     watermark graphics=#1,     watermark stretch=1.00,     watermark opacity=0.3,     arc=0pt,     outer arc=0pt,     nobeforeafter}     }     \pagestyle{empty}          \begin{document}          \noindent\begin{tcolorbox}[       bgtable=papiro.png,       tabularx*={}{C{20mm} | L{30mm} L{10mm} @{}C{1mm} @{}L{18mm} @{}C{1mm} @{}| L{20mm}},       watermark stretch=1.00,       width=10.8cm,       watermark opacity=0.8,       top=.51cm,       bottom=.31cm,     ]     %erste Linie über Tabelle        & \multicolumn{6}{c}{}  \\[-2\bls] \cline{2-6}          %erste Zeile          \multicolumn{1}{r|}{\multirow{6}{*}{\includegraphics[width=.9cm]{path2456.png}~~\,}} &          \multicolumn{5}{c|}{\raisebox{-.7pt}{\scshape\sffamily \bfseries \so{MET 8$\cdot$\&$\cdot$30}}} &           \multicolumn{1}{l}{\multirow{7}{*}{\begin{turn}{90}\ttfamily  herb\end{turn}}} \\          \cline{2-6}          %%zweite Zeile        & \multicolumn{1}{c}{\multirow{5}{*}{\parbox{3cm}{\tiny            \scshape \RaggedRight Honig,  Wasser, Äpfel, Hefe,             und vor allem Zeit braucht man, um selbstgemachten Met verschenken            zu können. Du hälst gerade ein solches Geschenk in der Hand. \newline Wenn es Dir           schmeckt, lass es mich wissen.}}             }              & \multicolumn{2}{l}{}             & \multicolumn{2}{l|}{}                &\\     %     %%dritte Zeile        &              & \multicolumn{1}{l}{\tiny Charge:}           &              & \multicolumn{1}{l}{\tiny Flaschennummer:}              &          &\\ \cline{3-3} \cline{5-5}           %%vierte Zeile        &           & \multicolumn{1}{|l|}{\ttfamily 09\,/\,13}           &           & \multicolumn{1}{|c|}{\ttfamily 3\,/\,15}           &          &\\ \cline{3-3} \cline{5-5}           %%%%%%%%%%%%%%%%%%%%%%%%%%     %%leere ``Zeile``          \cline{3-3} \cline{5-5}& \multicolumn{5}{c|}{} & \multicolumn{1}{c}{}  \\[-\bls] \cline{3-5}     %%%%%%%%%%%%%%%%%%%%%%%%%%     %%fünfte Zeile        &          & \multicolumn{3}{|l|}{{\tiny gebraut von:} \ttfamily Schmendrich}                & \\          \cline{3-5}         & \multicolumn{5}{r|}{\miniscule \sffamily natürlich mit Schwefel}         & \multicolumn{1}{r}{}\\ \cline{2-6}          \end{tcolorbox}                    \end{document}


title: location of tables in page

text: I have the code below for a table creation but the table is appeared before the referred site. Code:               \begin{table}      \caption{The properties of the fitted linear model}         \label{tab: varpar}         \centering         \footnotesize\setlength{\tabcolsep}{2.5pt}         \begin{tabular}{|c|c|c|c|c|}             \hline             \texttt{Partial Sill} &\texttt{ Nugget} & \texttt{Range} & \texttt{Instant} & \texttt{Slope} \\ \hline             0.30         & 0.19   & 408   & 0.0015  & 0     \\             \hline         \end{tabular}     \end{table}      Moreover i have used `\clearpage` to avoid ploting of tables or figures in a new section. And, the aforementioned code is cited in new section. However, I would like to have tables as near as possible to the cited site.


title: Photograph credits in LaTeX

text: Is there any convenient package/way to link photograph credits with a figure, and then generate a kind of `\listoffigures`? Have you any other solution than generating the `.lof` temporary file, and edit it manually?


title: What is the easiest way to draw 3D cube with TikZ?

text: I'm trying to find the easiest way to draw a 3D cube (it's for my UML diagram) with TikZ. Could you please give an example? Like this: ![enter image description here](http://i.stack.imgur.com/UH5LV.png)


title: Text in corner of tikz rectangle

text: How do I write some text in the bottom-right hand corner of a rectangle so that the text is as far to the right and down as possible without exceeding the bounds of the rectangle? The rectangle is defined using `fit`, like so:               \node[draw=black,inner sep=2mm,thick,rectangle,fit=(a) (b)] {};


title: Difference between one glue and two glues after each other

text: Is there a difference between               A\hskip 1pt \hskip 0pt plus 1fil B      and               A\hskip 1pt plus 1fil B      ? Are these two glues the same in terms of spacing and (line-)breaking? Or do they just add up, as I assume?


title: Cambria Math \bigg command doesn't work as expected

text: I get wrong sizes when I use `\bigg` and family with Cambria. Here is an example (I loaded `mathtools` before `unicode-math` and then my actual problem showed up). We can see that the size `\bigg` exists because it works well without `mathtools`, and also if I use `\left`/`\right` construction:               %!TEX TS-program = xelatex     \documentclass{scrartcl}          \usepackage{mathtools}     \usepackage{unicode-math}     \setmathfont{Cambria Math}          \begin{document}     \[         \Biggl( \biggl( \Bigl( \bigl( ( a ) \bigr) \Bigr) \biggr) \Biggr)     \]     \[         \Biggl( \left( \Bigl( \bigl( ( a ) \bigr) \Bigr)^2 \right) \Biggr)     \]     \end{document}      ![enter image description here](http://i.stack.imgur.com/AJgaX.png)


title: Adjust vertical space between headline and text box

text: How to adjust vertical space between headline and text box? I used [t] option but there is still a big space on the slide.               \documentclass[compress,serif,xcolor=dvipsnames,xetex,t]{beamer}          \usetheme{Madrid}     \definecolor{Setcolor}{HTML}{6698FF}     \usecolortheme[named=Setcolor]{structure}               \usepackage{xltxtra}     \XeTeXlinebreaklocale "th"     \defaultfontfeatures{Scale=1.4}     \renewcommand{\baselinestretch}{1.35}     \setmainfont[Script=Thai]{DilleniaUPC}               \usepackage[all,knot,color]{xy}     \xyoption{arc}     \usepackage{url}               \setbeamertemplate{headline}     {             \leavevmode%             \hbox{%                  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.0ex,center]{section in head/foot}%                     \usebeamerfont{section in head/foot}\textbf{\insertauthor}\hspace*{2ex}%             \end{beamercolorbox}%                  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.0ex,center]{subsection in head/foot}%                     \usebeamerfont{subsection in head/foot}\hspace*{2ex}\textbf{\insertsubsectionhead}%             \end{beamercolorbox}}%                  \vskip0pt%     }          \setbeamertemplate{footline}     {             \leavevmode%             \hbox{%                  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.5ex,dp=1ex,left]{section in head/foot}                     \usebeamerfont{author in head/foot}\enspace \textbf{\insertshorttitle}             \end{beamercolorbox}%     %             \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.5ex,dp=1ex,center]{section in head/foot}%                     \usebeamerfont{title in head/foot}\insertsubtitle             \end{beamercolorbox}%     %             \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.5ex,dp=1ex,right]{section in head/foot}                     \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}                     \textbf{\insertframenumber{} / \inserttotalframenumber}\hspace*{2ex}             \end{beamercolorbox}}%     %             \vskip0pt%     }               \makeatletter          \def\beamer@themerounded@shadow{true}     \defbeamertemplate*{title page}{mydefault}[1][]     {             \vbox{}             \vfill             \begin{centering}                          {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}                     \begin{beamercolorbox}[sep=8pt,center,#1]{title}                             \usebeamerfont{title}\inserttitle\par%                             \ifx\insertsubtitle\@empty%                             \else%                             \vskip0.25em%                             {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%                             \fi%                     \end{beamercolorbox}%                          \vskip1em\par                          \begin{beamercolorbox}[sep=8pt,center,#1]{author}                             \usebeamerfont{author}\insertauthor                     \end{beamercolorbox}                          \begin{beamercolorbox}[sep=8pt,center,#1]{institute}                             \usebeamerfont{institute}\insertinstitute                     \end{beamercolorbox}                          \begin{beamercolorbox}[sep=8pt,center,#1]{date}                             \usebeamerfont{date}\insertdate                     \end{beamercolorbox}\vskip0.5em                  \end{centering}             \vfill     }     %     \setbeamertemplate{title page}[mydefault][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]     \makeatother               \AtBeginSection[]{         \setbeamercolor{section in toc shaded}{use=structure,black}         \setbeamercolor{section in toc}{fg=black}         \setbeamercolor{subsection in toc shaded}{fg=black}         \setbeamercolor{subsection in toc}{fg=black}         \frame<beamer>{             \begin{multicols}{2}                     \frametitle{\textbf{\insertshorttitle}}                     \setcounter{tocdepth}{2}                     \tableofcontents[currentsection,subsections]             \end{multicols}         }     }          \titlegraphic{\includegraphics[height=2.0cm]{./Basic_Fig/BUU_EN.jpg}}     %     \title[\textbf{ABCD (ABCDEFG)}]{\textbf{000000 ABCD}}     \subtitle{\textbf{ABCDEFG}}          \author{\textbf{AAAAA (BBBBBB)}}     \institute{\textbf{CCCCCCCC}}          \date{\textbf{XXXXX   YYYYY}}               \begin{document}     %     \begin{frame}[t]         \frametitle{\textbf{LaTeX – A document preparation system)}}         %         \begin{columns}[t]                 %                 \column{0.85\textwidth}                 %                 \begin{block}{\textbf{LaTeX}}                         %                         \textbf{                                 \begin{enumerate}                                         %                                         \itemLaTeX the product\\                                                 •LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents. LaTeX is available as free software.\\                                                 •LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents. LaTeX is available as free software.\\                                         %                                         \itemLaTeX the product\\                                                 •LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents. LaTeX is available as free software.\\                                                 •LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication and publication of scientific documents. LaTeX is available as free software.\\                                         %                                 \end{enumerate}                         }                         %                 \end{block}                 %         \end{columns}         %     \end{frame}     %     %     \end{document}      ![vertical space between headline and text box](http://i.stack.imgur.com/d9Gai.jpg)


title: drawing(uncover) a curve bit-by-bit using tikzpcture and beamer and \onslide

text: I wish to uncover a curve (a potential energy v distance) bit-by-bit while explaining what is going on. The code below is only ok, the problem is that the curve changes shape from slide 3 to slide 4. I can live with it and am not losing too much sleep over it ;) but I would like to find the obviously simple solution. I realise it is to do with the way I am plotting the curve. I plot the curve on each slide as a separate curve with just extra coordinate points. (full curve coordinates given in each and commented out the "extra points"). Ideally, I should be uncovering just sections of the curve. These solutions Uncover line segments of a TikZ graph in Beamer and Uncover segments of a TikZ path in Beamer work with straight lines not curves...               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{patterns}     \begin{document}     \begin{frame}{Real Gases}          \begin{tikzpicture}     \onslide<6->{\draw[green!20, pattern color =green!20, thin,pattern=north west lines] (0,-5) rectangle (2,2)  node[rotate=90,midway,above] {\tiny{\textcolor{green!30!black}{repulsive forces dominant}}};}% drawn first so appear as underlay     \onslide<6->{\draw[red!0, pattern color =red!20, thin,pattern=north west lines] (2,-5) rectangle (10,2)  node[midway,above] {\tiny{\textcolor{red!30!black}{attractive forces dominant}}};}          \onslide<1->{\draw[thick,->] (0,0) --(10,0) node[above left=0.2] {\tiny{Separation}};}     \onslide<1->{\draw[thick,->] (0,-5) --(0,2) node[rotate=90, near end,above] {\tiny{Potential Energy}};}     \onslide<2>{\draw[color=blue, thick,-] plot[smooth] coordinates{%(1.35,2)(1.4,1.75)(1.5,1.5) (2,0) (3,-3) (4,-5)(5,-4.5)(6,-2)(7,-0.8)     (8,-0.3)(9,-0.1) (10,0)};}     \onslide<3>{\draw[color=blue, thick,-] plot[smooth] coordinates{%(1.35,2)(1.4,1.75)(1.5,1.5)(2,0)(3,-3)     (4,-5)(5,-4.5)(6,-2)(7,-0.8)(8,-0.3)(9,-0.1) (10,0)};}     \onslide<4>{\draw[color=blue, thick,-] plot[smooth] coordinates{%(1.35,2)(1.4,1.75)(1.5,1.5)     (2,0) (3,-3) (4,-5)(5,-4.5)(6,-2)(7,-0.8)(8,-0.3)(9,-0.1) (10,0)};}     \onslide<5->{\draw[color=blue, thick,-] plot[smooth] coordinates{(1.35,2)(1.4,1.75)(1.5,1.5)(2,0) (3,-3) (4,-5)(5,-4.5)(6,-2)(7,-0.8)(8,-0.3)(9,-0.1) (10,0)};}     \end{tikzpicture}     \end{frame}     \end{document}


title: Getting really bare numeric citations in biblatex

text: I've finally given in and gone over to biblatex, at least for my thesis. I'm using a superscripted numeric reference style, and that works nicely. However it's sometimes useful to be able to say something like "Data taken from reference 1". If I use `cite{some_ref}`, I get "...from reference [1]". This is by design according to the manual, but I had a nice way of doing this in bibtex -- so how can I replicate this? Also (I suspect the answer will be related) my bibliography is listed with the citation numbers in square brackets. I'm starting to wish I'd stuck with bibtex - the benefits of using biblatex seem tiny compared to the hassle of switching mid document.


title: How to input kana with PDFLaTeX?

text: There are a lot of topics about how to use Japanese font, but, often the answer is: use XeLaTeX (or some other), or worse, it's just doesn't work at all. So, knowing that I'm working with PDFLaTeX (latest version), in Texmaker (idem), with MiKTeX (idem), on Windows XP, how can I type Japanese characters? If possible. The best way would to put it with command such as `\euro{}` is used to input the € symbol. About the 1st proposed solution, here, you can find the error message I've got : The error from the log After suppressing the 19th line, in the 1st solution, that works perfectly. Anyone knows why ? The problem seems to be due to the "maru" option. Thanks for you effort.


title: New Large Math Symbol

text: I want to use symbols from the `phaistos` package as "numbers" This means that I want to type something like:               \documentclass{amsart}          \usepackage{phaistos}          \newcommand{\lo}{\text{\PHbee}}     \newcommand{\loo}{\text{\PHboomerang}}          \begin{document}     \[     \lo + \loo     \]     \end{document}      and have it come out looking semi-decent. Since the symbols in this package are large text symbols, they do no go below the bottom line that text is sitting on. To make the math look correct, they would need to go below the line. I think if I made them large math symbols, this would center them the way I want. Thoughts on a good way to do this?


title: A medium dot in math mode

text: Is there a nice way to produce a medium-sized dot to use in a formula like this:               $x_{i\cdot} = \sum_{j} x_{ij}$      The `\cdot` is not very visible.


title: Changing the refpoint of splittopskip?

text: The following example has the setting:               \splittopskip=.3cm      However in the output I can't see any vertical space. It seems that `\vsplit` starts the computing of the height at the baseline. How can I change it so that the highest point of the first line will be uses as reference point?               \documentclass{article}     \parindent0pt     \def\exampletext{Text Text Text Text Text Text Text Text Text Text Text Text      Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text      Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text }     \fboxsep=0pt     \fboxrule=1pt          \newbox\boxi     \newbox\boxii     \begin{document}     \begingroup     \setbox\boxi=\vbox%      {%         \hsize=8cm\sloppy         \bfseries\huge\exampletext      }          \splitmaxdepth0pt \splittopskip=.3cm     \setbox\boxii\vsplit\boxi to2cm     \setbox\boxii=\vbox{\unvbox\boxii}          BOX \verb+\boxii+\hfill\fbox{\box\boxii}          \setbox\boxi=\vbox{\unvbox\boxi}          BOX \verb+\boxi+\hfill\fbox{\box\boxi}     \endgroup     \end{document}


title: Glossaries package: ignore \newacronym if acronym has been defined before

text: I have a document consisting of multiple tex files, one per chapter, I am using the `glossaries` package to create list of acronyms. Ideally I want to define acronyms as close to where they are used, i.e. in the chapter tex files, in order to make the chapters self contained. However, this leads to some double definitions (acronyms defined in multiple chapters), something which the `glossaries` package does not like (it throws a "Glossary entry `xx' has already been defined" error). Therefore I was wondering if it would be possible to change the `\newacronym` command in a way that it would ignore attempts at defining acronyms that are already known. Basically it would boil down to an if-then-else structure which first checks whether the acronym label is already known, if so does nothing and if not executes the original `\newacronym` code.


title: In fancytooltips, how to set size of background color box

text: I want the size of background colore box to automatically match the "size" of formula to be displayed. What I get is a box spanning size of page. as in               \documentclass{article}     \usepackage{xcolor}     \usepackage{amsmath}     \usepackage{framed}     \usepackage[createtips]{fancytooltips}     \colorlet{shadecolor}{yellow!50}          \begin{document}     \Huge     \keytip{M2} \begin{shaded}     \[     M= \begin{bmatrix}     \alpha & \beta   \\     \gamma & \delta  \\     \end{bmatrix}     \]     \end{shaded}     \end{document}


title: Use different bibliography styles for the same BibTeX database

text: I have a bibtex database which I'm sharing between a beamer presentation and my thesis. I would like the former to show just the title and authors of the article instead of the whole citation, since it doesn't otherwise fit in the presentation frame. Any ideas on how to do that?


title: How to specify a Tikz coordinate relative to a node?

text: is there a simple idiom (one not using the `calc` library) to specify a Tikz coordinate relative to a node? Something like `\coordinate (x) [right=of A];` instead of `\node (x) [draw=none, right=of A]{};`? Thanks


title: Displaystyle and left-alignment

text: \newcommand{\mbi}[1]{\textbf{\emph{#1}}}     \documentclass[preview]{standalone}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \begin{document}     \begin{large}     \displaystyle     \begin{equation}     {\mbi s} = {\mbi P}{\mbi d}, {\qquad{(2)}}\nonumber     \end{equation}     \end{large}     \end{document}      I'm using displaystyle to get the image without the white space. But this invariably produces errors and warnings. When I don't use it, there are no errors, but then this produces extra white space on the left. Any help will be appreciated.


title: On unprotecting (expanding) \protected macros (or, "the space after command name")

text: I quite often come into a situation, where I need to obtain some text produced by a package macro as a string, like in say:   * Expanding (edef) a lipsum command?   * How do I "unprotect" an argument? One thing I bump into here, is trying to `\typeout` the macros in question, and typically observing a space between the `\command` and its arguments (hence the title); and I'd usually take this wrongly as a string parsing problem ( _as in, how do I remove the space between the command and its arguments_ ), and spend quite a bit of time in a pointless battle `:)` * * * EDIT: to clarify this:   * In the 1st link: `\lipsum[1]` command typesets "Lorem Ipsum..." in the PDF document; one would want to somehow obtain the characters for "Lorem Ipsum..." in a `\temp` command, such that `\typeout{\temp}` would print "Lorem Ipsum ..." to the terminal and log output.    * In the 2nd link: `\today` from `isodate` typesets "24 May, 2012" in the PDF document; likewise, one would want to somehow obtain the characters for "24 May, 2012" in a `\temp` command, such that `\typeout{\temp}` would print "24 May, 2012" to the terminal and log output.  (whether `\edef` is used for the purpose is not that much of an issue, I guess; but as far as I can see, it is the only command possibly appropriate) * * * Now, I finally came up with an MWE that demonstrates this, so I'd like to ask about this in more generic terms - consider:               \documentclass{minimal}          \def\doubleCommand#1#2{testing-#1-#2}          \protected\def\tmpcmd#1{teststring#1} % concatenate, no spaces               \begin{document}          \typeout{--Test:--\doubleCommand{A}{B}--}          \edef\initArg{12}     \edef\dcArg{\tmpcmd\initArg}          \typeout{--Args:--\initArg--\dcArg--}          \edef\myResult{\doubleCommand{\dcArg}{Verbatim}}     \edef\myResult{\detokenize\expandafter{\myResult}}          \typeout{--Out :--\myResult--}          This: \doubleCommand{\dcArg}{Verbatim}          \end{document}      Now, this works fine, and typesets "`This: testing-teststring12-Verbatim`", as expected. However, if we look at the terminal log output from `pdflatex`, we get:               --Test:--testing-A-B--     --Args:--12--\tmpcmd 12--     --Out :--testing-\tmpcmd 12-Verbatim--      That is, the `\edef` didn't expand the `\tmpcmd` command - and its name is printed instead, along with the arguments ( _and notably, there is the space between the command and the first argument`:)`_). However, since the content is typeset fine, it is obviously accesible somewhere - and it is this content that I would like to have as a "string" in a variable. To show this, all I need to do is remove the `\protected` command, so I have:               \def\tmpcmd#1{teststring#1} % concatenate, no spaces       ... and then the terminal log shows:               --Test:--testing-A-B--     --Args:--12--teststring12--     --Out :--testing-teststring12-Verbatim--      ... that is, the command output ("`teststring12-Verbatim`") is now a "string" value in a "variable" (command). Now, I'm pretty sure there are good reasons for `\protected`; however, many times I just want to get to the data which is typeset anyways. So is there a strategy that one could employ in these cases? The above links suggest there is not, and a solution - if possible - depends on a given package's command, and its implementation... However, I'd like a method that I could employ, without changing package style files ( _like, say, removing`\protected` from diverse macros I might need, which even without further knowledge, I can tell is a bad idea_). I can already guess such a general method is not available - but could anyone explain why (maybe in terms of the above MWE)? Many thanks in advance for any answers,   Cheers!


title: Typeset bibliography as part of a cls file

text: For several papers, the same bibliography files are used and always written at the bottom of the paper:               \bibliographystyle{alpha}     \bibliography{../biba,../bibb,../bibc}      I'm wondering if there is a way to hide these commands form the user and simply use a .cls file that import the bibliographies with the correct style. This is useful if for instance the number of files can increase and items are moved from one file to another one.


title: Unused global option (cleardoublepage=plain)

text: I know that some of the `Unused global option(s)` LaTeX warnings can be resolved including some packages (as in here). Specifically, How can I get rid of the following warning?               LaTeX Warning: Unused global option(s): [cleardoublepage=plain].


title: Bibtex stretches the first line

text: The first line looks very "stretched". How can I improve the formating? ![enter image description here](http://i.stack.imgur.com/xGzjW.png)               @misc{Rel1,     author = {J. Citizen},      title = {Kinect used as Topshop dressing room},     month = {may},     year = {2011},     howpublished = {http://www.playerattack.com/news/2011/05/10/kinect-used-as-topshop-dressing-room/}      }      **Edit:** `\url{}` does not solve the problem: ![enter image description here](http://i.stack.imgur.com/IujTE.png)


title: pst-3dplot's Alpha and Beta are not correctly set with pstThreeDCoor?

text: This is a simple question   * when I set `Alpha` and `Beta` in `\pstThreeDCoor`, why doesn't it affect all the following macros? I have to set it in `psset` and also add a `\pstThreeDCoor{Alpha=#1,Beta=#2,drawing=false}` so that everything is affected My usual grudge comes when I have `plots` and `dots`. When I set it `\pstThreeDCoor`, the plots are good but the dots behave with default Alpha and Beta. I used the following workaraound but it is quite a mistery to me why this is even necessary:               \newcommand{\setAB}[2]{%       \psset{Alpha=#1,Beta=#2}%       \pstThreeDCoor{Alpha=#1,Beta=#2,drawing=false}}      **Update: An example** A paraboloid with tangent plane and vectors               \documentclass[11pt]{book}     \usepackage{pst-3dplot}     \begin{document}     \begin{pspicture}(-2,-1)(3,3)     %if this line is commented, the plots are ok but the dots are not     %\psset{Beta=15}     \pstThreeDCoor[         Beta=15,         nameX=$X$,xMin=-1.7,xMax=1.7,         nameY=$Y$,yMin=-1.7,yMax=1.7,         nameZ=$Z$,zMin=-0.5,zMax=2.4,         linecolor=lightgray,linewidth=1.3pt,arrowscale=2.0     ]     %--------------BACKGROUND--------------     \psset{linecolor=lightgray,linewidth=0.7pt,yPlotpoints=1}     %horizontals     \parametricplotThreeD[yPlotpoints=2](0,360){t cos 1.5 mul t sin 1.5 mul 2.25}     %verticals     \parametricplotThreeD(0,1.55){-39 cos t mul -39 sin t mul t t mul}     \parametricplotThreeD(0,1.55){129 cos t mul 129 sin t mul t t mul}     %--------------FOREGROUND--------------     \psset{linecolor=black,linewidth=1.0pt}     %curvas coordenadas     \parametricplotThreeD(-45,135){t cos 1.2 mul t sin 1.2 mul 1.44}     \parametricplotThreeD( 0,1.60){80 cos t mul 80 sin t mul t t mul}     %punto P     \pstThreeDDot(0.208,1.182,1.44)     \pstThreeDPut[pOrigin=br](0.208,1.182,1.55){$P$ }     %VECTORS     \psset{arrowscale=1.3}     %vector Circu < -0.99 , 0.16 , 0 >     \pstThreeDLine{->}(0.208,1.182,1.44)(-0.782,1.342,1.44)     %vector Parab < 0.06 , 0.36 , 0.72 >     \pstThreeDLine{->}(0.208,1.182,1.44)(0.268,1.542,2.16)     %vector Norm < 0.115 , 0.713 , -0.366 >     \pstThreeDLine{->}(0.208,1.182,1.44)(0.323,1.895,1.074)     \pstThreeDPut[pOrigin=l](0.305,1.863,1.014){$\textbf{N}$}     %Plano Pi     \pstThreeDLine[linestyle=dashed,linewidth=0.8pt](-1.205,1.93,2.46)%     (-1.385,0.85,0.30)%     ( 1.585,0.37,0.30)%     ( 1.765,1.45,2.46)%     (-1.205,1.93,2.46)     \pstThreeDPut[pOrigin=l](-1.205,1.97,2.5){$\Pi$}     \end{pspicture}     \end{document}      I will include a set of two compilations that demonstrate the difference ![A correct picture with everything in its place](http://i.stack.imgur.com/FZnlK.png) ![A picture that does not have its elements in place](http://i.stack.imgur.com/B1Xhf.png) The example code is not a verbatim copy of my file but it is enough to produce an adequate result (it corresponds to the left sides of the example images)


title: Two independent optional arguments for new commands

text: I'm trying to adapt the solution provided in Different command definitions with and without optional argument to change the behavior of my new command. I'd like to use basic command to avoid some non basic packages. I'm defining a command `\mysign` to produce my signature at the end of the document. But sometimes I need the date above and sometimes not. So I'd like to have an optional argument to insert it (for example`\mysign[date]`). Also, sometimes I need to insert some personal ID and I'd like to have a second optional argument, but independent with the first one. So, the result would be something like this:   * `\mysign` only the signature    * `\mysign[date]` the signature with date   * `\mysign[id]` the signature with ID   * `\mysign[date, id]` full signature The problem is that `\@ifnextchar[` is working only for one option. I can not adjust to work only with second option. Any idea?


title: Align itemize bullet to text

text: I am looking for a command to align text to the itemize's bullet.               {\addtolength{\leftskip}{10mm}      \textbf{Short text in here}     \begin{itemize}     \item A description of..     \item Another description of..     \end{itemize}     \par      My text and items are nicely moved 10mm towards right due to the \leftskip{10mm} but it won't align just right. Now, I want the bullet from my item to left align with my "Short text in here". I need a command to offset my items a little to the right. Is there any way to handle that? I hope this makes sense. Otherwise, don't hesitate to ask once again! :-)


title: How can I use an align environment flush left?

text: Is there a way possible to imitate the `align` environment for math mode commands, without having all writing being placed toward the center on the output page? MWE:               \documentclass{article}     \usepackage{mathtools}          \begin{document}     \begin{align*}     \cos\theta_1 \cos\theta_2-\sin\theta_1\sin\theta_2 &= \cos(\theta_1 +\theta_2) \\     \sin\theta_1 \cos\theta_2 + \cos\theta_1 \sin\theta_2 &= \sin(\theta_1+\theta_2)     \end{align*}          \end{document}


title: How to align equations left?

text: Today,I want to make my equations align left. My trial:I use the command`flushleft`               \documentclass[a4paper,cs4size,UTF8]{ctexart}             \usepackage{amsmath}                    \begin{document}          \end{flushleft}          \begin{equation}               \begin{bmatrix}              L_{a1} & 0 \\              0 & L_{a2} \\               \end{bmatrix}               \begin{bmatrix}                   \dot{I}_{a1}  \\                   \dot{I}_{a2}  \\               \end{bmatrix}          +               \begin{bmatrix}                   R_{a1} &    0      \\                   0      &    R_{a2} \\               \end{bmatrix}               \begin{bmatrix}                    I_{a1}  \\                    I_{a2}  \\               \end{bmatrix}          +           \begin{bmatrix}               K_{e1} &   0      \\               0      &   K_{e2}            \end{bmatrix}           \begin{bmatrix}               \dot{\theta}_1 \\               \dot{\theta}_2 \\           \end{bmatrix}          =           \begin{bmatrix}               V_{a1} \\               V_{a2}            \end{bmatrix}          \end{equation}                    \begin{equation}           \begin{bmatrix}               A & B \\               E & D \\           \end{bmatrix}           \begin{bmatrix}               \ddot{\theta}_1 \\               \ddot{\theta}_2 \\           \end{bmatrix}          +           \begin{bmatrix}               C \\               F \\           \end{bmatrix}          =           \begin{bmatrix}               T_1 \\               T_2 \\           \end{bmatrix}          \end{equation}                    \begin{equation}           \begin{bmatrix}               K_{T1} &   0      \\               0      &   K_{T2} \\           \end{bmatrix}           \begin{bmatrix}               I_{a1} \\               I_{a2} \\           \end{bmatrix}          =           \begin{bmatrix}               T_1 \\               T_2 \\           \end{bmatrix}          \end{equation}          \end{flushleft}          \end{document}      However,it failed.I'd like to how to revise it


title: How do I debug the message “Argument of \XC@definec@lor has an extra }”

text: Can anyone provide me with some intuition about what might cause an error like this?               Argument of \XC@definec@lor has an extra }      I am unable to produce an MWE that demonstrates the error, as it occurs in a large document and when I extract the part that seems to be causing the error and compile it by itself it works as expected and does not produce the error. I think that it is related to a TikZ picture I am trying to draw. _Reference:How to paramerize a tikz chain picture with list of nodes_


title: tikz intersection fails in combination with the library calc

text: In the second example I am trying to work the the library `intersection`. It works fine as long as I don't use the `calc` library. The first example shows my intention. I am using `($2*(w1')$)` which produces the expected result:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{intersections,calc}               \begin{document}     \begin{tikzpicture}[x=3cm,y=3cm]     \coordinate (O) at (0,0);     \coordinate (F') at (-0.8,-0.1);     \coordinate (F'') at (0.8,0);     \draw[thick](O) ++(F') ++ (F'');     \draw[gray,name path=circle around F'] (F') circle (1.2);     \draw[gray,name path=circle around F''] (F'') circle (1.2);     \draw[name intersections={of=circle around F' and circle around F'',by={w1,w1'}}]   (intersection-1) node[dot,draw]{}     -- (intersection-2)node[dot,draw]{};     \draw[red,thick] (w1) -- (w1');     \draw[blue,thick] (w1) -- ($2*(w1')$);     \end{tikzpicture}     \end{document}      In the picture you can see that the blue line is expanded. ![](http://i.stack.imgur.com/pEkxE.png) In the second (not minimal) example it fails:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{intersections,calc}               \begin{document}     \tikzset{dot/.style={circle,minimum size=3pt,inner sep=0pt,outer sep=0pt,thick,fill,}}     \begin{tikzpicture}[x=3cm,y=3cm]     \coordinate (B) at (-1,0);\node[dot] at (B) {};\node[left] at (B) {$B$};     \coordinate (D) at (0,1);\node[dot] at (D) {};\node[anchor=south east] at (D) {$D$};     \coordinate (F) at (0,-.25);\node[dot] at (F) {};\node[anchor=west] at (F) {$F$};          \draw[thick,name path=line FB] (F) -- (B);     \draw[thick,name path=line FD] (F) -- (D);     \draw[gray,name path=circle around F] (F) circle (0.8);          \path[name intersections={of=circle around F and line FB,by=F'}];     \path[name intersections={of=circle around F and line FD,by=F''}];          \draw[gray,name path=circle around F'] (F') circle (0.6);     \draw[gray,name path=circle around F''] (F'') circle (0.6);     \draw[name intersections={of=circle around F' and circle around F'',by={w1,w1'}}]         (w1) node[dot]{}     -- (w1')node[dot]{};     \draw[red] (w1') -- ($2*(w1)$);     \end{tikzpicture}     \end{document}      The red line misses the intersection. I don't know why. ![](http://i.stack.imgur.com/XsIyK.png) What is the problem?


title: Creating Page Border for Single Page only

text: I am digitizing a book and there is only a single page which has page border as shown in the attached image. How can I create border to a single page? Is there a library where I can choose a border from? ![Example of page with a border](http://i.stack.imgur.com/4a7Ht.jpg)


title: tabular side-by-side

text: I am trying to get two tabular constructs side-by-side with a tikz figure in between and can't seem to get what I want using the minipage construct. Here is the code I have               \documentclass[twocolumn]{article}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{subfigure}     \usepackage{picture}     \usepackage{caption}     \usepackage{tikz-rdf}     \usepackage{tikz}     \usepackage{tkz-graph}     \usepackage{tkz-berge}          \usetikzlibrary{shapes,shapes.callouts,,decorations.text,shapes.misc,decorations.pathmorphing,shapes.geometric,backgrounds,fit,positioning,arrows}          \begin{document}          \begin{figure}[t]     \begin{minipage}[b]{.30\textwidth}       \centering       \scalebox{.6}{           \begin{tabular}{| p{1.5cm} | c | c | c |} \hline             title & nationality & locatedIn & salary \\              ?t & ?n & ?p & ?s \\ \hline             Professor  &  American & USA &  \$100,000 \\ \hline             Professor  &  American & China &  \$100,000 \\ \hline             Assistant Professor  &  Canadian & China &  \$45,000 \\ \hline             Assistant Professor  &  Canadian & China &  \$45,000 \\ \hline             Assistant Professor  &  Canadian & China &  \$45,000 \\ \hline           \end{tabular}       }     \end{minipage}     %     \begin{minipage}{.2\textwidth}                   \begin{tikzpicture}                     \draw[                          -triangle 90,                             line width=1mm,                             postaction={draw, line width=0.3cm, shorten >=0.3cm, -}                     ] (0,0) -- (1,0);                \end{tikzpicture}               \end{minipage}             %      \begin{minipage}[b]{.30\textwidth}%{80mm}             \centering                      \scalebox{.6}{                   \begin{tabular}{| p{1.5cm} | c | c | c |} \hline                     title & nationality & locatedIn & salary \\                      ?t & ?n & ?p & ?s \\ \hline                     Professor  &  American & USA &  \$100,000 \\ \hline                     Professor  &  American & China &  \$100,000 \\ \hline                     Assistant Professor  &  Canadian & China &  \$135,000 \\ \hline                   \end{tabular}                 }             \end{minipage}             \end{figure}               \captionof{table}{Current and Mean B with a Reversed Polarity}                  \end{document}      The output I am getting is the following. Any help would be appreciated. ![enter image description here](http://i.stack.imgur.com/NGs2t.png)


title: Conformal mapping with pgfplots

text: I would like to realize the following graph with `pgfplots`: ![Conformal mapping](http://i.stack.imgur.com/SqSyD.png) which represents the following conformal mapping:               u=x^{1/q}     v=y^{1/q}      where `q=2*(pi-alpha)/pi`. **EDIT:** Here is the formula for the conformal mapping, as reported in the original article: ![Conformal mapping formula](http://i.stack.imgur.com/CE7pB.png) I really don't know from where should I start to realize a graph of this kind, so every suggestion is welcome. Once I have some useful suggestion, I will try to write my own code. Thanks for your kind help.


title: How productive are you with TikZ?

text: First, I must say I have very limited knowledge about PGF/TikZ. Most things I do are blind copy-pastes of examples I find on the Internet with lots of trial-and-error and googling around. After spending 4 hours on drawing the simple diagram below (and many other hours on previous diagrams), I could not help to wonder how much time an experienced TikZ user would need to draw it. Had I used some click-and-drag tool, it would definitely take less than 30 minutes. I understand that TikZ has quite a learning curve, much like LaTeX itself and other tools like the vi editor, shell scripting, sed, awk, etc. You have to study a lot to actually figure out how things work and how to express what you want (just like learning a programming language), but the sacrifice pays off later, because you can accomplish tasks much faster than with regular "friendly" tools. However, I am not so sure this holds for TikZ, at least for simple stuff like Computer Science diagrams. Hence, my question is: Would it pay off for me to learn and understand all principles and techniques of PGF/TikZ? Would you, as an expert TikZ user, draw a simple diagram like the one below faster than a regular click-and-drag user? ![enter image description here](http://i.stack.imgur.com/ye3pr.png) Link to diagram: https://docs.google.com/open?id=0ByXEz0ubVg5rTGh3bFo3SW93c00


title: Does the \bibliography command add a page break afterward?

text: I am trying to add an entry from my .bib file into a document. After the `\bibliography` command is issued, the following sections starts in a new page. I have looked around but have not been able to find out about page breaks _after_ the References section, given that the usual expected place for it is at the end of the document. Why is the page break happening and how can I prevent it? My document ~~structure~~ is dead simple:               \documentclass[10pt]{article}     \usepackage[round]{natbib}     %\usepackage{fullpage}     \usepackage{lipsum}     \title{Author (year): Name of the article I am reviewing}     \author{Ricardo}     %     \begin{document}     \maketitle     \begin{abstract}     \lipsum[1]     \end{abstract}     \renewcommand{\refname}{\section*{SectionNo1}}     \bibliographystyle{apalike}     \bibliography{bibfile}     \nocite{reKkey}     \section*{SectionNo2}     \section*{SectionNo3}     \section*{SectionNo4}     \section*{SectionNo5}     \section*{SectionNo6}     \section*{SectionNo7}     \section*{SectionNo8}     \section*{SectionNo9}     \section*{SectionNo10}     \end{document}      _New info_ Furthermore, I am compiling to PDF on MacTeX TeXLive 2009 on AucTeX 11.86. Using the `fullpage` package does not change the behavior, so I commented it out. I just started my document skeleton, so this is, literally, all I have at the time. The page break disappears if I write anything under any of the sections 2 through 4 (2 through 8 using the `fullpage` package. With this new information, I don't expect the page break to be a problem anymore. However, I am still interested in knowing why this is happening.


title: Multiline listing within multicolumn row

text: I have a problem putting a listing (using `lstlisting` package) within a table. The problem is that I want to put a _multiline_ listing in a row taking 2 columns. The following minimal example shows what I want to achieve. However, `multicolumn` wraps the listing on a single line.               \documentclass{article}     \usepackage{listings}     \lstset{basicstyle=\ttfamily}     \begin{document}          \begin{table}[h]     \begin{center}     \begin{tabular}{ |l|l| }     \hline     \multicolumn{2}{|l|}{       \begin{lstlisting}^^J         1st line         2nd line       ^^J\end{lstlisting}     } \\ \hline     some text & some text \\ \hline     \end{tabular}     \end{center}     \end{table}          \end{document}      I've tried to wrap the listing in a `vbox` or `minipage`, but that didn't help. Any alternatives to `multicolumn`, or other ways to get a multiline listing in a table like this?


title: Size Math font – Define different sizes for Display and Text Equations globally

text: I have a rather long document with plenty of maths and equations. As the equations are quite long I have chosen to use 8pt for equations in the display mode instead of the 10pt normal size. `\DeclareMathSizes{10}{8}{6}{6}` globally changes all equations in math mode to 8pt font. Is there a way to stick with 10pt in textstyle equations?, i.e. is it possible to differentiate between displaystyle and textstyle? Help is much appreciated!


title: overlapping labels in tikz

text: This might be closed for being too localised, in which case I don't know where to get help from but here goes. I am drawing a histogram with Tikz (using the ybar interval bar chart) and labelling the bars on the x axis. The problem is that one of the bars is very thin, and as a result the labels merge into one another making them unreadable. Is there any way to move just one label down so that it sits below the others, preferably with a line above indicating where it should be. Here is an MWE:               \documentclass[oneside,a4paper]{memoir}     \usepackage{libertine}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{rotating}     \usepackage{pgfplots}          \begin{document}          \begin{sidewaysfigure}     \begin{tikzpicture}     \begin{axis}[ybar interval,       xticklabels={BT,UO,HH1,AOM,WS,D,GS,TSZ,BGE,GM,CW,TI,AC,EH,NCW},       ymin=0,       width=20cm, height=15cm,       enlargelimits={false}%       ]       \addplot coordinates         {(0,0.001690154) (0.42008,0.001788549) (1.46562,0.001654645)         (2.32381,0.0008229) (2.66407,0.000605811) (3.07674,0.00032906)         (3.89726,0.000320221) (4.67797,0) (5.52977,0.000493147)         (6.11783,0.000287141)         (6.57057,0.000686841) (6.81808,0.001095676) (7.07363,0.002101944)          (7.11169,0.000255776) (7.22898,0.000594904) (7.53155,0)};         \end{axis}     \end{tikzpicture}     \end{sidewaysfigure}          \end{document}


title: Changing the language of an amsrefs generated bibliography

text: _Using amsrefs for generating a bibliography, is there a way to change the language it uses, for instance, for separating multiple authors?_ Amsrefs does not seem to care about the language parameter given to babel. I found this question asked several times on the web, but non of the answers given where satisfactory. Meaning they were saying: use bibtex or do ugly things by hand.


title: pgfplots - Add offset to pins

text: I'm trying to make a bar plot for an optimization parameter in quantum physics. To be more informative, the graph should display the values of these parameters above the bars. So far I did               \documentclass{minimal}     \usepackage[ngerman]{babel}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}          \begin{center}       \begin{tikzpicture}         \begin{axis}[title={$E_0$ über $n$}, ymax=2.5, yticklabels=]           \addplot [blue!90!white, fill=blue!50!white, ybar] coordinates {             ( 1, 1.96556 )             ( 2, 1.86105 )             ( 3, 1.93185 )             ( 4, 2.02568 )             ( 5, 2.12077 )             ( 6, 2.21219 )           };           \pgfplotsforeachungrouped \x/\y in {1/1.96556, 2/1.86105, 3/1.93185, 4/2.02568, 5/2.12077, 6/2.21219} {             \edef\temp{\noexpand\node[coordinate, pin={[rotate=90]0:\y}] at (axis cs:\x,\y) {};}\temp           }         \end{axis}       \end{tikzpicture}     \end{center}          \end{document}      This code outputs the following graph > ![Optimization for a particle in the gravitational > field](http://i.stack.imgur.com/WK3DW.png) Now I tried to add a little space between the bars and the pins, but I failed. I tried `++ (axis cs:0,0.1)`               \edef\temp{\noexpand\node[coordinate, pin={[rotate=90]0:\y}] at (axis cs:\x,\y) ++ (axis cs:0,0.1) {};}\temp      and `++ (axis direction cs:0,0.1)`               \edef\temp{\noexpand\node[coordinate, pin={[rotate=90]0:\y}] at (axis cs:\x,\y) ++ (axis direction cs:0,0.1) {};}\temp      Both variants give this error:               ! Package tikz Error: A node must have a (possibly empty) label text.      I also tried `pos=0.1`               \edef\temp{\noexpand\node[coordinate, pin={[rotate=90]0:\y},pos=0.1] at (axis cs:\x,\y) {};}\temp      which compiles fine but gives this output > ![Broken version of the upper graph](http://i.stack.imgur.com/6u5dj.png) Thanks in advance, maeru.


title: Grouped multi-column nomenclature

text: I'd like to print a multicolumn nomenclature list that consists of several groups. At the moment, using the grouping approach described in the manual and with a code snippet from http://www.latex- community.org/forum/viewtopic.php?f=51&t=7892, it works in principle. However, the list runs down the entire first column of the page and then continues on the second, regardless of the groups. What I'd prefer is for each group to be in its own `multicols` environment: _What I have:_ ![](http://i.stack.imgur.com/2U0Uk.png) _What I'd like:_ ![](http://i.stack.imgur.com/zxivc.png) Is there a way to achieve this with the `nomencl` package? * * *               \documentclass{article}     \usepackage{nomencl}     \usepackage{ifthen}     \usepackage{multicol}     \makenomenclature               \renewcommand{\nomgroup}[1]{%       \ifthenelse{\equal{#1}{A}}{%        \medskip\item[\large\textbf{\textsf{Latin}}]\medskip%         }{%         \ifthenelse{\equal{#1}{B}}{%              \medskip\item[\large\textbf{\textsf{Greek}}]\medskip}{%                 \medskip}         }     }          \renewcommand*\nompreamble{\begin{multicols}{2}}     \renewcommand*\nompostamble{\end{multicols}}               \begin{document}            \nomenclature[A]{a}{1}%     \nomenclature[A]{b}{2}%     \nomenclature[A]{c}{3}%     \nomenclature[A]{d}{4}%     \nomenclature[A]{e}{5}%     \nomenclature[A]{f}{6}%     \nomenclature[A]{g}{7}%     \nomenclature[A]{h}{8}%     \nomenclature[A]{i}{9}%     \nomenclature[A]{j}{10}%     \nomenclature[A]{k}{11}%     \nomenclature[A]{l}{12}%               \nomenclature[B]{$\alpha$}{1}%     \nomenclature[B]{$\beta$}{2}%     \nomenclature[B]{$\gamma$}{3}%               \printnomenclature     \end{document}


title: Problem with colortbl and supertable, color width of the row with leading "@{}"

text: I have a problem with `colortbl` `\rowcolor` that insists on making the color width of the rows longer than the actual row width. Snippet of the code:               \documentclass[a5paper, 10pt, twoside]{article}     \usepackage[english, norsk]{babel}     \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage{textcomp}     \usepackage{amssymb, amsmath}     \usepackage{color}     \usepackage{graphicx, tabularx, fancyhdr, colortbl}     \usepackage[a5paper, height=18.0cm, inner=1.3cm, outer=0.65cm]{geometry}     \usepackage[colorlinks, linkcolor=black]{hyperref}     \usepackage{supertabular}     \usepackage{hyperref}     \usepackage[ttbnonum]{flowfram}          \twocolumn[1-2]          \begin{document}     \tiny     \begin{supertabular}{|p{0.38\linewidth}l@{\,}|lrl|}        \multicolumn{5}{p{0.7\linewidth}}{\textbf{\raggedright \\ \footnotesize No name }} \\       \hline       \rowcolor[gray]{0.8} (project) (Ss) &  & \hspace{-8pt} Fp north & \hspace{-8pt} \textbf{3B:} & \hspace{-10pt}2 \\       \rowcolor[gray]{1.0} (project) (!) &  & \hspace{-8pt} Fp north & \hspace{-8pt} \textbf{3C:} & \hspace{-10pt}2 \\       \rowcolor[gray]{0.8} (project) (Ds) &  & \hspace{-8pt} Fp north & \hspace{-8pt} \textbf{5C:} & \hspace{-10pt}2b \\       \rowcolor[gray]{1.0} (project) (Ss) &  & \hspace{-8pt} Fp north & \hspace{-8pt} \textbf{13A:} & \hspace{-10pt}7 \\       \rowcolor[gray]{0.8} (project) &  & \hspace{-8pt} Fp north & \hspace{-8pt} \textbf{13B:} & \hspace{-10pt}1 \\       \rowcolor[gray]{1.0} (project) (Ss) &  & \hspace{-8pt} Fp north & \hspace{-8pt} \textbf{13B:} & \hspace{-10pt}2 \\     \end{supertabular}     \end{document}      The table expands across several pages (its genereated by some C++ code I'm making). The output looks like this: ![enter image description here](http://i.stack.imgur.com/3WgOg.jpg) The problem lies with the leading `@{}` in the definition of the `supertable` (I have to use super table since that is the only one compatible with `flowfram`). I could put a negative `\hspace`, but that will still "indent" the second line in the `p{...}`. (Been struggling with this one for 3 years now...)


title: Why does the stemma appear twice in the footnote?

text: This is annoying, the stemma appears twice when I typeset this. probably something wrong with the `\rhet` command:               % XeLaTeX can use any Mac OS X font. See the setromanfont command below.     % Input to XeLaTeX is full Unicode, so Unicode characters can be typed directly into the source.          % The next lines tell TeXShop to typeset with xelatex, and to open and save the source with Unicode encoding.          %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode     \documentclass[11pt,oneside]{book}     \usepackage{ledmac}     \usepackage{fancyhdr}     \usepackage{adforn}     \pagestyle{myheadings}     \usepackage{hanging}     \textheight = 180.5 mm     \textwidth = 108.5 mm     \pagenumbering{arabic}     \makeatletter     % And in the paragraphed footnotes, I'd like no colon too:     \def\parafootfmt#1#2#3{%       \normal@pars       \parindent=0pt \parfillskip=0pt plus 1fil       {\bf\printlines#1|}%       {\select@lemmafont#1|#2}~%       #3\penalty-10 }     \makeatother     \let\Afootfmt\parafootfmt          %\newcommand{\rhet}[2]{\edtext{#1}{\Afootnote{#2}}}     \newcommand{\rhet}[2]{\edtext{ #1}{\Afootnote{#1~]\ \ #2}}}     \newcommand{\oed}[2]{\edtext{ #1}{\Bfootnote{] #2}}}     \footparagraph{A}     \footparagraph{B}          %%%%%%%%%%%%%%%%     \raggedbottom               \newcommand*{\LeftWidth}{3.0cm}%     \newcommand*{\RightWidth}{\dimexpr\linewidth-\LeftWidth-2em\relax}%     \newcommand{\AlignedBrace}[2]{%         \medskip\par\noindent%         \parbox{\LeftWidth}{\raggedleft\textbf{#1}\strut~}%         $\left\{~\parbox{\RightWidth}{\strut\textit{#2}\strut}\right.$%     }%               %\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.     %\geometry{a4paper}                   % ... or a4paper or a5paper or ...      %\geometry{landscape}                % Activate for for rotated page geometry     %\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent     \usepackage{graphicx}          \usepackage{amssymb}     \usepackage{amsmath}     %\renewcommand %These two commands are for double-spacing     %\baselinestretch{2}          % Will Robertson's fontspec.sty can be used to simplify font choices.     % To experiment, open /Applications/Font Book to examine the fonts provided on Mac OS X,     % and change "Hoefler Text" to any of these choices.          \usepackage{fontspec,xltxtra,xunicode}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{Brill}     \setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}     \setmonofont[Scale=MatchLowercase]{Andale Mono}     \frenchspacing               \begin{document}          \beginnumbering     \pstart      my Lorde \rhet{Robert Dudley}{Around a hundred books were dedicated to Robert Dudley during Elizabeth's reign, see Rosenberg 1958 p. xiii; Adams 2008b}, \rhet{Maister of the Queenes Maiesties horse}{On Elizabeth I's accession in November 1558}, \rhet{one of her highes priuie Counsaile}{appointed in October 1562}, and \rhet{knight of the moste honourable order of the Garter}{elected on 24 April 1559 and installed on 3 June}: Richard Rainolde wisheth longe life, with increase of honour.\\          \pend     \endnumbering     \end{document}


title: (Vim+latex) How to compile a single tex file in a project directory using \ll

text: I am using Vim+latex. In my project directory, I have another separate tex file (for example a tikz/PGF file to draw a figure). When I input \ll, instead of compiling my current file, the system compiles the project file. Is it possible to tell the system to compile my current file? Thanks a lot!


title: Arrows inside a table, marking transition between table cells

text: Is it possible to have arrows showing transition between cells inside a table?   I doubt I could do this just by using tables, so I was wondering if there was someway to get something like that working. Eg: ![enter image description here](http://i.stack.imgur.com/q1nU3.png)


title: Problem printing with TeXStudio from internal PDF viewer

text: I am having a lot of trouble printing my files from the internal PDF viewer of TeXStudio. I keep getting the following message: GPL Ghostscript 9.10: Unrecoverable error, exit code 1. What could be the source of this problem?   Here is the code for my file Sample.tex.                   \documentclass[11pt]{article}         \usepackage{amsmath}         \pdfpagewidth 8.5in         \pdfpageheight 11in         \newcounter{prob_num}         \setcounter{prob_num}{1}         \newcommand{\prob}[5]{\bigskip \bigskip\arabic{prob_num}.\stepcounter{prob_num} #1         \par\nopagebreak[4]\medskip A.\ #2\hfill B.\ #3\hfill         C.\ #4\hfill D.\ #5\hfill E.\ NOTA}              \begin{document}              \prob{What is $2+2$?}{4}{5}{6}{7}              \prob{What is $\sqrt{100}$?}{81}{10}{9}{1}              \prob{Evaluate $\displaystyle\sum_{n=1}^\infty \frac{1}{n^2}$.}         {$\frac{1}{e}$} {$\frac{2}{\pi}$}         {$\frac{\pi^3}{8}$} {$\frac{\pi^2}{6}$}              \end{document}


title: How to typeset the limit of a sequence like so?

text: I want to write this: ![enter image description here](http://i.stack.imgur.com/l1dhe.jpg) I tried with `$x_n \to_{n \to 0} 0$` but the `$n \to 0$` doesn't go under the right arrow, it goes under but on the right, and I want it under but in the center, as in the picture above.


title: Second Derivative

text: I would like to make a function analysis and I'm trying to make a tabular which includes the first and second derivatives and the curve arrow which indicates the monotonicity of my function and I can't make the curve arrows which connects the monotonicity of the first derivative and the second. The best I can do is               \documentclass[11pt]{article}     \usepackage{color}     \usepackage{tikz}     \usepackage{MnSymbol}     \usepackage{tikz,tkz-tab,amsmath}     \usetikzlibrary{arrows}          \begin{document}          \newcommand{\E}{\mathrm{e}}     \begin{tikzpicture}     \tikzset{arrow style/.style = {blue,->,> = latex',     shorten > = 6pt,     shorten < = 6pt}}     \tkzTabInit[espcl=2]{$x$ /1, $f'(x)$ /1.5, $f''(x)$ /2,$f(x)$/2.5}{$-\infty$, $0$ ,$1$ , $2$ , $+\infty$}%     \tkzTabLine{ ,+,z,- ,d,-,z,+}%     \tkzTabLine{ ,-,t ,- ,d,+,t ,+}%     \tkzTabVar%     { -/  ,  +/ ,-D+/  /  ,  -/  ,+/  /  }%     \end{tikzpicture}          \end{document}      Although I try to manage something like this ![wanted](http://i.stack.imgur.com/MFYEo.png) Anyone who can help me?


title: Monotonicity tabular latex

text: I repost my question. I try to succeed the following table in my latex doc.![enter image description here](http://i.stack.imgur.com/MFYEo.png) I have done the first 3 lines but i cannot do the curve arrows in the forth line.I sent you the code until now               \documentclass[11pt]{article}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{tikz}     \usepackage{tikz,tkz-tab,amsmath}     \usetikzlibrary{arrows}          \begin{document}          \newcommand{\E}{\mathrm{e}}     \begin{tikzpicture}     \tikzset{arrow style/.style = {blue,->,> = latex',     shorten > = 6pt,     shorten < = 6pt}}     \tkzTabInit[espcl=2]{$x$ /1, $f'(x)$ /1.5, $f''(x)$ /2,$f(x)$/2.5}{$-\infty$, $0$ ,$1$ , $2$ , $+\infty$}%     \tkzTabLine{ ,+,z,- ,d,-,z,+}%     \tkzTabLine{ ,-,t ,- ,d,+,t ,+}%     \tkzTabVar%     { -/  ,  +/ ,-D+/  /  ,  -/  ,+/  /  }%     \end{tikzpicture}          \end{document}      Anyone who can help?


title: How to fix this amsmath warning about redefining \vec

text: I am using the pss(b) template, which starts with,               \documentclass[pss]{wiley2sp} % provides pss two-column style     \usepackage{amsmath}     %\usepackage{bm}              % uncomment these two packages if you     %\usepackage{w-greek}         % need extended greek-letter functionality in math mode      I always got this warning: > Package amsmath Warning: Unable to redefine math accent `\vec`. Does anyone know how to fix this problem?


title: Pdfpages.sty not found - Windows

text: This question is a follow-up question in regards to this topic: Error: File 'pdfpages.sty' not found The following is just a copy paste of my question asked in that topic: > I am so so sorry for asking this question, but I seem to feel as if this is > only for Linux users? I cannot for the life of me get pdfpages to work on > Windows, and pdfpages.sty never ever seems to be popping up. > > I've been scrolling through the depths of the interwebs now for hours trying > to find a decent answer and I always seem to be coming back to this one. >   >   >     > latex pdfpages.ins >     > latex pdfpages.dtx >   > > The above seems to be for Ubuntu? It is years since I last used it, and I > cannot really recall anything at all. I would appreciate any answer in > regards to this. > > PS: I've extracted the pdfpages.tds.zip to its appropriate folders, but > still there's no 'pdfpages.sty' file. > > Best regards First off, I'll have to admit that I've just recently started using LaTeX, and Pdfpages would be the first 'package' that I would be installing. I followed the descriptions on How can I manually install a package on MiKTeX (Windows), but I seem to be failing at getting a `pdfpages.sty` file. I installed it using the `.zip` files (`pdfpages.tds.zip`). I have also run the `mktexslr`, `texhash` etc. While also having refreshed the FNDB. I would appreciate any type of help, and I am sorry for asking something that might feel like a dumb question.


title: Plotting 3-dimensional Sets

text: I am using MikTex and Texworks with pgfplots to try and plot 3 and 2-dimensional sets Could some of you nice fellas help me out? I am trying to plot: ![image](http://i.imgur.com/CJRKSsM.png) I can print out the page and draw per hand too, actually I'd like to know how to print a blank coordinate system with x,y,z labels and arrows at the axis in addition to plotting those things in LateX directly. Must I convert the given form into the polar coordinate system or is there another, direct way?