Tag Info

4

You can use the makecell package for that: it allows for linebreaks and common formatting in certain cells, with the \makecell and \thead commands: \documentclass[a4paper]{article} \usepackage{array} \usepackage{makecell} \renewcommand\cellalign{lc} \setcellgapes{3pt} \makegapedcells \begin{document} \begin{table}[htp] \begin{tabular}{|*{5}{l|}} \hline ...

4

pbox doesn't seem to help you much here, I'd just use tabular \documentclass[a4paper]{article} \usepackage{array} \setlength\extrarowheight{2pt} \begin{document} \newcommand\pb[1]{% \begin{tabular}{@{}l@{}}#1\end{tabular}} \begin{table}[htp] \begin{tabular}{|l|l|l|l|l|} \hline \multicolumn{2}{|l|}{SOME TEXT HERE} & \multicolumn{3}{l|}{Big ...

0

I used \clearpages as well to start every problem and solution on it's own page. Since i have the feeling, that this might be a longer work, i simply switched form an article class to a report class, more precisely scrreprt from the KOMA-bundle. Anybody eager grasping the loks of the standard classes, can uncomment emulatestandardclasses. But we are living ...

2

You can center the part by using sectsty and adding \usepackage{sectsty} \partfont{\centering} And to have things on new page, you have to add some \clearpage/\cleardoublepage (just to be safe) as I have marked in the code. \documentclass{article} \usepackage[english]{babel} \usepackage{mathtools} \usepackage{environ} \usepackage{sectsty} ...

0

I figure out the second part. To add \newpage command to Solutions part, you add a \newpage command inside the \late@solution environment to get the desired effect. \newcommand{\late@solution}[2]{% \subsubsection*{Solution for puzzle #1}#2% \newpage } To have the centering of the Part (and their title) I changed the document class to book and it works ...

4

Here is a method using flowfram. If you use this, make sure to read the documentation as it re-engineers the output routine in ways you need to know about. The top of the page is split into 4 frames. The content of these frames will not flow into other parts of the page, so you need to make sure stuff fits else it will spill over and overwrite other parts ...

5


6

If you just want to reduce the size of the -1 term, you could create your own macro called, say, \inv{...}, along the lines of the code below. The screenshot shows the look of both \inv{X} and X^{-1}. (The vertical offset of 1.15ex is chosen so that the tops of the 1 symbols are at very nearly the same height using either \inv{...} or X^{-1}. Feel free to ...

3

As the OP asks for a regular grid-like layout with "reflowing" properties, I suggest to use the raster library of the tcolorbox package. It provides an environment tcbitemize which is applid like itemize. Every item (\tcbitem) is formatted by a tcolorbox and everything is arranged in a grid-like layout. If one \tcbitem is added or removed, everything flows ...

0

As mentioned in the comments above, you've given a very sketchy picture of what you want. Here's an alternative approach. I'm not sure what you meant by marking things; so, I guessed. \documentclass{article} \usepackage{xcolor} \usepackage{etoolbox} \usepackage{pgfkeys} \makeatletter \newbool{mark by name} \newbool{mark by job} \def\ae@table@mark@item{} ...

2

Here is what I would suggest with TeXShop. For the case where there are numerous replacements to be done, this will actually be faster than manually selecting each x and replacing this). Set x as the search target: Either through the Find panel, or selecting a single x and hitting ⌘e. Put $x$ in the PASTE command via ⌘C. Then hitting ⌘g will find the ...

3

Probably not what you want but it would help to have some code. \documentclass[a4paper,landscape]{article} \usepackage{geometry,array,longtable,booktabs} \newcommand\person[1]{% \begin{minipage}[t]{.185\textwidth} \raggedright #1 \end{minipage}} \begin{document} \setlength{\extrarowheight}{5pt} \begin{longtable}{*{5}{p{.185\textwidth}}} ...

4

Here's a solution with amsthm \documentclass{article} \usepackage{amsthm} \newtheorem{thm}{Theorem} \newtheorem*{innergoal}{Theorem \thegoal} \newcounter{goal} \setcounter{goal}{-1} \newif\ifnotfirstgoal \newenvironment{goal} {\ifnotfirstgoal\else \global\notfirstgoaltrue \stepcounter{thm}% \fi \xdef\thegoal{\thethm.\noexpand\arabic{goal}}% ...

1

It appears the names of counters and theorems live in the same namespace, so goal the counter and goal the theorem environment clobbered each other. Changing the counter's name to goalnarrow fixed the problem. I'd still be interested in hearing more info on why and preferred solutions. Minimum working example: The relevant bits of my preamble are: ...

2

Surely multicols* is not to be used. Also a display makes very difficult avoiding LaTeX trying to fill the left column. With \begin{aligned}...\end{aligned} the computations don't appear to hang from nowhere. \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{enumerate} \usepackage{multicol} \begin{document} \begin{enumerate}[a)] ...

10


2

\setcounter{zfcpairing}{\value{zfcpairing}} is really superfluous. Instead, you need to assign to the zfcpairing counter the \value of enumi - that's just because you're in the first level (i) of the enumerate environment. Similarly, for the conditions list, the counter running with each \item is conditionsi (first level of the conditions list)... so I've ...

4

You can accomplish this by adjusting the style of whichever axis' tick labels you wish to adjust (xticklabel style, yticklabel style, or ticklabel style for both axes). Here I assume you wish to modify the y-axis tick labels. The particular items of interest are /pgf/number format/fixed zerofill (fixed format with trailing zeros shown) and /pgf/number ...

8

You can prepend something to every "real" line (i.e. not a line created by listings's breaklines option) via a listings hook called EveryPar. Note that, because listings hooks are global, some precautions must be taken if you're typesetting code in multiple listings languages but you only want to prepend stuff to lines of listings in a subset of those ...

3

As PDF is a vector format, I believe that this is an artifact of the PDF viewer that you use. The MWE below produces: and zoomed in even at 2000% we the line quality is good: Code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[-latex] \foreach \x in {1,4,...,40} { \draw[thin,blue] (0,0) -- (\x:2); } ...

6

By default latex makes sloping lines by positioning lots of small characters, and you can get artifacts like this (and which also explains the strange restrictions on the available slopes) If you use the pict2e package the picture environment commands are redefined to instead use back end drawing primitives (typically literal pdf or postscript specials) so ...

4

Perhaps something like this (EDITED to provide capability for \censorboxes as well): \documentclass{article} \usepackage{censor,xcolor} \censorruledepth=-.2ex \censorruleheight=.1ex \makeatletter \renewcommand\StopCensoring{% \def\censor##1{\textcolor{blue}{##1}}% \def\censorbox##1{\bgroup\color{blue}\un@censorbox{##1}\egroup}% ...

Top 50 recent answers are included