New answers tagged

1

A solution with pstricks: \documentclass{article} \usepackage{pst-node, pst-plot} \usepackage{auto-pst-pdf} \def\fput(#1)#2{\rput(#1){\psframebox*{$#2$}}} \begin{document} \begin{pspicture}(0,0)(8,6) \psset{dy=-1, labels=none, ticks=none, xunit =0.8, yunit=-0.5, linejoin=1,arrowinset=0.15} \psline{ <->}(0,10)(0,0)(11,0) ...


2

Allocate a cell for every vertical rule; with \omit you can override the strut in the first cell and add whatever height you need. \def\tablerule{% \noalign{\hrule} } \vbox{ \offinterlineskip\tabskip=0pt \halign{% \tabskip=2pt \strut\vrule#& \hfil#\hfil& \vrule#& \hfil#\hfil& \tabskip=0pt \vrule#\cr ...


3

The standard solution is: give bigger \strut. For example \vbox to<xx>{} creates strut of given height plus depth. The depth is set by \lower. More exactly: \def\tablerule{\noalign{\hrule}} \vtop to 4truein{ \halign{ \lower5pt\vbox to16pt{}\vrule#& \hskip2pt#\hfil& \vrule\hskip2pt\hfil#\hfil\hskip2pt& ...


4

The problem isn't tikz. It is the blank lines between the \tikz macros and the subsequent \lipsum macros. LaTeX takes the blank line as a paragraph break. A few well-placed % signs fixes it. \documentclass{article} \usepackage{tikz} \usepackage{lipsum} \begin{document} \tikz[remember picture,overlay]\node[rectangle, minimum size=5cm,fill=lightgray] ...


2

Instead of RLtext environment to insert arabic text you can use \RL{arabic text} for inserting short arabic text inside latin paragraphs. \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{arabtex} \usepackage{semtrans} \usepackage{longtable} \usepackage{array} \usepackage{tipa} \setarab \begin{document} ...


0

I found a part-solution, by adding \usepackage{setspace}to the preamble and adding \begin{spacing}{.6} before and \end{spacing}after the table. Now I need only to disable this command for the first row of the table. Any ideas how it can be done? Thank you!


0

You seem to be confusing between horizontal and vertical. Is this what you want? \documentclass{article} \usepackage{lmodern} \newlength{\titlerulewidth} \begin{document} \begin{center} \fontsize{24}{30}\itshape Someeeeeeeee Textttttttttttt \vspace{10mm} \fontsize{18}{24}\itshape \settowidth{\titlerulewidth}{Someeee Textttt} Someeee Textttt ...


1

EDITED to turn process into a macro. I also added a \strut so that the presence of descenders does not alter the depth of the underset. \documentclass{article} \usepackage{stackengine,xcolor} \newsavebox\tmpbox \newcommand\foo[1]{% \savebox\tmpbox{\Huge\strut#1}% \stackunder[10mm]{\usebox{\tmpbox}}{\textcolor{red}{\rule{5pt}{.4\wd\tmpbox}}} } ...



Top 50 recent answers are included