# Tag Info

1

You don't need tabularx, that's all. ;-) \documentclass{article} \usepackage{array} \newcommand{\calcfactor}[1]{% \dimexpr#1\textwidth-2\tabcolsep-1.5\arrayrulewidth\relax } \newcolumntype{P}[1]{p{\calcfactor{#1}}} \begin{document} \noindent \begin{tabular}{|P{.25}|P{.75}|} \hline \multicolumn{2}{|c|}{% \makebox[\calcfactor{.5}][l]{Title}% ...

0

If your first row has say 3 columns, you can convert it into 2 columns by merging any 2 columns. In this way you can set you table header as well as data fields. Here is an example, try this: \begin{tabular}{|c|c|l|l|} \hline 1,1 & 1,2 & 1,3 & 1,4 \bigstrut \\ \hline 2,1 & \multirow{2}[4]{1.5cm}{Four bigstruts} & \multirow{3}[6]{*}{Six ...

0

(This is not a full answer, but more of a list of comments, but it's too long for a comment.) Your problem is very complex and specific. so you should consider whether it would maybe be easier if you tried to write everything "by hand" and not rely too much on configuring the \tableofcontents. That being said, here are some ideas: If you write: ...

2

theindex is basically an environment that may be a list, but also may not. The .ist declares how the preamble looks like and how a \item is interpreted. E.g., as LaTeX default, \item is \n\item, as defined by item_0. You can change the foraging (at least) at two locations: You write your own .ist file. For a documentation, see e.g., makeindex' manpage. ...

2

To have the ultimate control over where this content is displayed and whether/not it ends up elsewhere in the document, I would patch \@maketitle in the Document > Settings... > LaTeX Preamble using etoolbox: \usepackage{etoolbox} \patchcmd{\@maketitle}% <cmd> {\ifx\@empty\@dedicatory}% <search> {\smallskip \begin{center} ...

1

The package makeidx (the most common indexing package for LaTeX) has a way to format the pages of a particular index entry. Namely, if you write \index{bulldog|textbf} then the page number for this entry will be typeset in bold face. You can use this in your case as follows: Define a new "style command" that takes one argument (the page number) and ...

0

You can use the etoolbox package to modify the behaviour of the first \bibitem and to issue the instruction \thispagestyle. \usepackage{etoolbox} \newbool{firstbib} \booltrue{firstbib} \preto{\bibitem}{\ifbool{firstbib}{\thispagestyle{fancy}\setbool{firstbib}{false}}{}} Modify the end of the TEX file \end{flushleft} \nocite{•} \bibliographystyle{plain} ...

3


4

You should do two things: use \documentclass[fleqn]{article} (or whichever document class you're using), but also use gather instead of align. align and its cousins are for vertically aligning text around some specified character, usually =, but gather is for a general list of equations. (You can also use gather* to get an un-numbered version.) ...

0

If you provide empty \item[], then the bullet will not appear within the list. With regard to the indentation, if you just want to avoid it in the mentioned area, then one of the solution is to adjust the left skip: \begin{itemize*} \leftskip-\dimexpr\leftmargin %%% \item[] \headerrow{\textbf{Google}}{\textbf{Cambridge, MA}}\\ %%% Ensure linebreak ...

0

So far, I have been succeeding working around these complex alignment possibilities and strict requirements by combining tcolorbox longtable threeparttable This answer (http://tex.stackexchange.com/a/170767/69378) got me going in getting a base formatting and easily adjustable size structure in place. Then when I coupled it with the table packages ...

1

The easy way is part of the paralist package (see page 3 of the manual). To achieve a) b) c) just start your enumeration with \begin{enumerate}[a)] (or \begin{inparaenum}[a)]). For capitals use A instead of a, for Roman numbers use i or I, for arabic numbers use 1. The surrounding formatting, e.g., ) can be arbitrary, you can escape the special characters ...

2


2

This seems a job for array: \documentclass{article} \usepackage{amsmath} \newcommand{\graph}[3]{% #1 = graph name, #2 = nodes, #3 = edges \begin{array}[t]{@{}l@{}} #1 = ( \\ \qquad \{ #2 \}, \\ \qquad \{ #3 \}, \\ ) \end{array} } \begin{document} $\graph{\mathit{graph}2}{c_1,c_2,\dots,c_8}{e_1,e_2,\dots,e_{12}}$ \end{document}

4

Having long column headers is your main problem, replacing those with symbols that are explained in the caption, such as $T_{\mathrm{in}}$ for the inlet temperature, helps a lot. This is probably not exactly what you want, but it should give you an idea. If there is anything in particular you want, add a comment \documentclass[12pt]{article} ...

1

It is better to draw the rule directly instead of using \uuline. An easy way to draw a rule that extends the whole width of the text is \hrule. For example: \makeatletter \let\oldsection\section \def\section{\@ifstar\s@section\@section} \newcommand{\@section}[2][\relax]{\oldsection[#1]{#2}\hrule\bigskip} ...

3

This is the default for the AMS article document class - sections are set in small caps. These defaults are set in what is called a layout (and stored in a .layout file). Layouts are available in the in the Resources/layouts subfolder of your LyX folder, if you want to take a gander. Specifically, the AMS article layout is available in amsart.layout. If you ...

2

Here's one possibility. titlesec was used to change the format for chapter headings and tocloft to add the period after the unit number in the ToC: \documentclass{book} \usepackage{titlesec} \usepackage{tocloft} \titleformat{\chapter} {\normalfont\huge\bfseries}{\thechapter.}{1em}{\Huge} \renewcommand\cftchapaftersnum{.} \begin{document} ...

2

We can use the \ifkeyword inside \mkbibnamelast \renewcommand*{\mkbibnamelast}[1]{% \ifkeyword{primary} {#1} {\textsc{#1}}} to check for primary only, but you can combine this with the more sophiscticated solution in Set author's last name in small caps but avoid them for editors, translators, etc using biblatex to \def\ifmknamesc{% ...

6

Using caption package this is quite straightforward: \captionsetup[figure]{labelfont={bf},name={Fig.},labelsep=period} In this case, no \renewcommand{\figurename}{Fig.} is needed \documentclass{article} \usepackage{graphicx} \usepackage{caption} \begin{document} \listoffigures ...

2

This is no solution for the text wrapping in case of strikeout, but it removes the problem with \sout and \cite etc. I've defined a \ifcorrectingmode switch and set it to true using \correctingmodetrue. While this is active, \strikeit will show the effect of \sout. In the final run, just say \correctingmodefalse and \strikeit does nothing. The \cite ...

1

I wouldn't do it at any cost. Here is a way to jump in to the Bay of Bengal. \titleformat{\chapter}[display] {\filcenter\fontsize{12}{15}\selectfont \mdseries}{\chaptertitlename\ \thechapter}{0pt}{} \titleformat*{\section}{\fontsize{12}{15}\selectfont \centering \mdseries} \titleformat*{\subsection}{\fontsize{12}{15}\selectfont \centering \mdseries} ...

3

If you can use LuaLaTeX instead of pdfLaTeX, it's possible to set up a Lua function and a TeX "wrapper macro" to perform the task of formatted printing of longitude. (Speaking for myself, I find that writing a Lua function is a more straightforward exercise than hacking/augmenting the \ang macro would be...) The TeX-side "wrapper macro", named \longitude in ...

2

Here's a way to do it with a wrapper command called \longitude. Could likely be optimized, but this evaluates each digit and adds zeros as necessary (with a few examples): \documentclass[10pt]{article} \usepackage{siunitx} \newcommand\longitude[1]{% %Commands to extract the components \def\extrang##1;##2;##3;{##1} ...

5

You could insert the instruction \titlelabel{\thetitle\ - } immediately after \appendix. If you want an en-dash instead of a simple dash, the instruction should be \titlelabel{\thetitle\ -- }

2


1

Having abbreviations and symbols in the same list would be confusing. Elad Den already showed one way to set it up with nomencl, here's an example with glossaries: \documentclass{article} \usepackage[acronyms,toc,nonumberlist,nogroupskip]{glossaries} \usepackage{filecontents} \begin{filecontents}{gloss.tex} %================ACRONYMS=================% ...

1

you can use nomencl package, I did it this way: in the preamble add %section the nomenclature \usepackage{nomencl} \RequirePackage{ifthen} \renewcommand{\nomgroup}[1]{% \ifthenelse{\equal{#1}{S}}{\item[\textbf{Symbols}]}{ \ifthenelse{\equal{#1}{A}}{\item[\textbf{Acronyms}]}{}}} Then in the body of the thesis (after the \begin {document}) When adding a ...

4

The items passed through \seq_set_map:NNn are subject to full expansion. In the application showed in the linked to answer it's not really relevant, but it is in yours, because \textbf, and possibly also the items, doesn't survive full expansion. Just use \exp_not:n: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\bolditems}{ ...

5

The posted text produces the error message ! Missing $inserted. <inserted text>$ l.8 a \sigma {\textsubscript{\emph{x}}} is used to ? Because \sigma is a math command so must be used in math mode. \textsubscript{\emph{x}} would not itself be a tex error but it denotes a textual subscript and textual emphasis, both ...

Top 50 recent answers are included