New answers tagged

1

The textblock* environment uses the properties of the content to determine the size of the box (even though the textpos manual states that the width of textpos* is absolute). The TeX primitive \hrule takes as width the width of the of the vertical box that encloses the \hrule instruction (see Why does a \hrule need text around it to be drawn?), which is ...


4

Here is a workaround I have arrived at: \documentclass{beamer} \begin{document} \begin{frame} \frametitle{Lorem Ipsum} \begin{columns}[T] \column{.49\textwidth} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco ...


3

Edit: Here is a redefinition of the environment columns and it's column command to contain vertical lines between the columns with the help of tikz overlay. The way I used is by adding a \tikzmark to the beginning of each column and then calculating the middle point between this \tikzmark + the width of the command and the next column's \tikzmark. Also I ...


1

An answer to the two rules. The following bits of code added/changed to your MWE produce a single rule between the first and second lines of the heading and a rule at the bottom of the heading. ... \setheadfoot{60pt}{20pt} % your header is too large \checkandfixthelayout ... \makeheadrule{mystyle}{\textwidth}{0.4pt} % rule at the bottom \makeoddhead{mystyle}...


2

The line is in the margin: \documentclass{article} \usepackage[heightadjust]{marginnote} \usepackage{lipsum} \let\Item\item \renewcommand\item{\marginnote{\hrulefill}[1.6\baselineskip]\Item} \begin{document} Please initial each line item of the procedure. \begin{itemize} \item First item needing an initial line next to it. ...


0

The following provides initialitemize that inserts a regular \item plus an underline (of 3em, on the baseline) in the right margin (on the first line of each \item). The space between the initial and the margin is ~, but that can be changed as needed. \documentclass{article} \usepackage{lipsum} \newenvironment{initialitemize} {\begin{itemize} \let\...


3

The following seems more in line with what you're after: \documentclass{article} \usepackage[landscape]{geometry}% To make the table fit \usepackage{booktabs} \let\mc\multicolumn \begin{document} \begin{table} \caption{Linear Support Vector Machine} \begin{tabular}{ r *{4}{r} *{4}{r} *{4}{r} } \toprule & \mc{4}{c}{2015} & \mc{4}{c}{...


2

Welcome to TeX SX! I don't know how to extend cmidrule to dashed lines, but I propose this workaround with arydshln with a little hack to make the dashed line be aligned with \cmidrule. We can have coloured dashed lines, but no trimming. I loaded the caption package to have a more sensible spacing between caption and table. \documentclass{article} \...


3

If you mean with "pagewidth" the width of text on page, i.e.; \textwidth, than the following suggestion can be useful: \documentclass{article} \usepackage{tabularx} \usepackage{siunitx} \usepackage[skip=1ex]{caption} %---------------- show page layout. don't use in a real document! \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \...


1

Is it okay? I guess you mean textwidth instead of pagewidth. \documentclass[12pt]{article} \usepackage[margin=3cm]{geometry} \usepackage[utf8]{vietnam} \usepackage{tikz} %\usepackage{siunitx} \begin{document} \begin{tikzpicture}[yscale=.5] \pgfmathsetmacro{\a}{\textwidth} \draw (0,0)--+(0:\a pt) (0,-6)--+(0:\a pt); \path[left=5mm] (\a/2 pt,-1) node{methods}...


7

A very simple way to do that with \hrulefill. I added an improvement to the table with siunitx, so the numbers in the right column be aligned on the decimal dot: \documentclass{article} \usepackage{siunitx} \begin{document} \begin{table}[h] \centering \hrulefill\par \begin{tabular}{rS[table-format=-1.2, table-number-alignment=left]} methods &\...


Top 50 recent answers are included