Hot answers tagged

4

Regarding your first question, I suggest you employ judiciously chosen \newline directives. Regarding your second question, I suggest you load the caption package and employ a suitable value for the labelsep option. Whatever else you do, though, I strongly recommend you load one of several possible chemical formula packages and use their macros to typeset ...


4

The error is produced by \\ if there is no line for it to end, it is not related to \input or \newcommand really. You have \vspace{4mm} \@task \\ % Text declared using \task command \vspace{4mm} so if \@task (which is the text supplied in the argument) has already ended the paragraph, the \\ here will be in error. If \@task does not end the ...


4

This is a modification of your MWE. % cutoutprob.tex SE 561036 \documentclass{article} \usepackage{shapepar} \let\cutout\relax % don't want shapepar's \cutout, need cutwin's version \usepackage{graphicx,cutwin} \begin{document} % put this in the cutout \renewcommand{\windowpagestuff}{\centering \shapepar {\circleshape} cut cut cut cut cut cut cut cut ...


3

As you said with cutwin you can define any shape of cutout by manually specifying line lengths. You don't say, but are you after a macro that will (automatically) produce a circular cutout? If so, cutwin doesn't provide one. You could take a look at the shapepar package (> texdoc shapepar) which shows an example of a cutout for a circular inclusion. Also ...


3

Welcome to TeX.SE! Try this: \documentclass{article} \usepackage{array} \begin{document} \begin{table}[!htb] \centering \caption{\label{tab:vantagens}bus network} \vskip 1cm \begin{tabular}{ |c|>{\centering\arraybackslash}m{7cm}| } % <--- \hline Vantagens & Desvantagens \\ \hline Rede mais simples & Difícil correcção e detecção de ...


2

(Some unnecessary text to allow me to save the answer.)


2

Here is a starting point. With this simple solution you have to manually mark the words where the tag is to be placed. \documentclass{article} \usepackage{ulem} \newcommand\tag[2]{% \begin{tabular}[t]{@{}c@{}} #1\\ \makebox[0pt]{#2} \end{tabular}% } \begin{document} \uline{A long, long sentence that goes \tag{beyond}{sentence} the end of line, ...


2

Probably the following is closer to the desired output. I did not use alltt but simply switched to monospaced font using \ttfamily. Since the default Computer Modern font does not ofer a combination of typewriter like and bold font, I switched to Courier. Alternatives and more information on this topic can be found here: How do I get \texttt with bold face ...


1

Please always provide MWE (Minimal Working Example), a small but complete document with your table, which start with \documentclass[...]{...} and end with \end{document}. So far we can only guess about your document design. Your table have more issues (see comments below question). Beside them you have problems with overlapping of multirow text. This you can ...


1

With the nicematrix package \documentclass{article} \usepackage{nicematrix} \usepackage{booktabs} \begin{document} \newcolumntype{Y}[1]{>{\centering\arraybackslash}p{#1\textwidth}} \begin{NiceTabular}{Y{0.5}Y{0.5}} \toprule[2pt] Vantagens & Desvantagens \\ \midrule Rede mais simples & Difícil correcção e detecção de erros \\ \...


1

I had the bright idea of reserving blank space in the margin using \marginpar. However, wrapfigure will still overlap any pre-existing margin material. I don't know of any way to delay the start of wrapfigure until the margin is empty (except manually). Also, I don't know why \wrapfigure works and \begin{wrapfigure} doesn't, but it probably has something ...


1

Here's a solution based on @UlrikeFischer's answer here, using \parshape instead of warpfigure. It also relies on the \replicate command defined by @JosephWright here. I defined a new command \doublewrap which takes six arguments: (mandatory) The width of the left margin note, (optional) The number of lines that the left margin note should span, (...


1

Here is an option with textpos % !Mode:: "TeX:UTF-8" % !TEX TS-program = xelatex \documentclass[UTF8]{beamer} \usetheme{Warsaw} \usepackage[absolute, overlay]{textpos} \usefonttheme{serif} \begin{document} \begin{frame} \frametitle{title} \begin{textblock}{8}(1.0, 3.0) \begin{itemize} \item<1-> this is an example \item [] \item<2-> this is ...


1

In KILE, go to Settings --> Configure Kile --> Editor --> Appearance tab. Here you will find options on Word Wrap, which you can use. Another option is to wrap text after n characters. This option can be set fromSettings --> Configure Kile --> Editor --> Editing tab.


1

You switch from \centering to \raggedright before ending the paragraph that the tabular is in. Put a blank line or \par between \end{tabular} and \raggedright. Maybe I should recommend threeparttable.sty.


1

Update 21.4.2020 added example 3 and 4 Example 1 - calstable If you can live without the coloured rules, you can easily set such table using cals. If you want to have a narrower table, not filling the whole line width, just put number <1 in the formula, i.e. {\dimexpr(0.9\columnwidth)/34*4\relax} If you want a different width of the columns, just ...


1

For example something like this: \def\tableline#1#2#3{% \hbox{\onecolumn{5cm}{#1}\onecolumn{7cm}{#2}\onecolumn{4cm}{#3}} } \def\onecolumn#1#2{$\vcenter{ \leftskip=.3em plus1fill \rightskip=\leftskip \parindent=0pt \hsize=#1\relax \strut#2\strut}$% } \vbox{ \tableline{gd hd jvdhj gsd hksd fd cfg s5 esa dds s} {dusids ksb} ...


Only top voted, non community-wiki answers of a minimum length are eligible