I am using picins package to solve the random problems with the wrapfigures within an enumerate environment. Here is my MWE:
\documentclass{article}
\usepackage{picins}
\usepackage{enumerate}
\usepackage{graphicx}
\begin{document}
A Texas Ti tem alguns intervalos de confiança que fazem parte das análises estatísticas programadas por defeito (p.e. médias e proporções) se bem que outros estão ausentes (p.e. variâncias) mas ...
\begin{enumerate}
\item IC 95\% para as médias dos tempos de reação de homens e mulheres. Comece por introduzir os dados nas listas da máquina: {L1} para o sexo masculino e {L2} para o sexo feminino:
\begin{enumerate}
\parpic[right] {\includegraphics[width=0.35\linewidth]{ex1_ICmedias_Ti1}}
\item Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}.
\vskip 42pt
\parpic[right]{ \includegraphics[width=0.35\linewidth]{ex1_ICmedias_Ti2}}
\item Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2
\vspace{4\baselineskip}
\parpic[right]{ \includegraphics[width=0.35\linewidth]{ex1_ICmedias_Ti3}}
\item Pressione de novo o botão {…} e agora selecione
\end{enumerate}
\end{enumerate}
\end{document}
Here are the images just in case you want to compile the MWE:
And here is what I got thus far:
My Question is: Is there a clever way using \vskip or \vspace to automatically set the red spacing between figures and wrapped text? As of now I using trial and error to figure out how much space I need to add so that the next item and figure get separated from the previous one.... But that is terribly inefficient.
Any ideas? Thanks!
I would use a table to get this layout. Here an example using the tabularray package:
\documentclass{article}
%\usepackage{picins}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{tabularray}
\UseTblrLibrary{counter}
\usepackage[export]{adjustbox}
\begin{document}
A Texas Ti tem alguns intervalos de confiança que fazem parte das análises estatísticas programadas por defeito (p.e. médias e proporções) se bem que outros estão ausentes (p.e. variâncias) mas ...
\begin{enumerate}
\item IC 95\% para as médias dos tempos de reação de homens e mulheres. Comece por introduzir os dados nas listas da máquina: {L1} para o sexo masculino e {L2} para o sexo feminino:
\begin{tblr}{
colspec={#{}l#{}XQ[3cm]#{}},
cell{1-Z}{1}={appto={\alph{rownum})\space}}
}
& Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}. &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2 &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione de novo o botão {…} e agora selecione &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
\end{tblr}
\end{enumerate}
\end{document}
Here the same with page breaks:
\documentclass{article}
%\usepackage{picins}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{tabularray}
\UseTblrLibrary{counter}
\usepackage[export]{adjustbox}
\begin{document}
A Texas Ti tem alguns intervalos de confiança que fazem parte das análises estatísticas programadas por defeito (p.e. médias e proporções) se bem que outros estão ausentes (p.e. variâncias) mas ...
\begin{enumerate}
\item IC 95\% para as médias dos tempos de reação de homens e mulheres. Comece por introduzir os dados nas listas da máquina: {L1} para o sexo masculino e {L2} para o sexo feminino:
\DefTblrTemplate{firsthead,middlehead,lasthead}{default}{}
\DefTblrTemplate{firstfoot,middlefoot,lastfoot}{default}{}
\begin{longtblr}{
colspec={#{}l#{}XQ[3cm]#{}},
cell{1-Z}{1}={appto={\alph{rownum})\space}}
}
& Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}. &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2 &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione de novo o botão {…} e agora selecione &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}. &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2 &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione de novo o botão {…} e agora selecione &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}. &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2 &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione de novo o botão {…} e agora selecione &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}. &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2 &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione de novo o botão {…} e agora selecione &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}. &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2 &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione de novo o botão {…} e agora selecione &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione {…} para entrar no menu das estatísticas das {Texas Ti} e selecione a opção {1:Edit} do menu {EDIT}: e pressione {Í}. &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Digite agora os tempos da tabela do exemplo de homens e mulheres, respetivamente nas L1 e L2 &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
& Pressione de novo o botão {…} e agora selecione &
\includegraphics[width=\linewidth,valign=t]{example-image-duck}\\
\end{longtblr}
\end{enumerate}
\end{document}
Related
Hello I'm trying to use cells in latex.
image of my cell here
How do you put the "Func2" and the "-" centered in the cell?
The code I'm using is:
\begin{tabularx}{0.8\textwidth} {
| >{\raggedright\arraybackslash}X
| >{\centering\arraybackslash}X
| >{\raggedleft\arraybackslash}X | }
\hline
\multicolumn{3}{|c|}{2D - $L = 64$} \\
\hline
Speedup(x) & Func1 & Func2 \\
\hline
Func2 & 35.4 & - \\
\hline
Func3 & 322.8 & 9.1 \\
\hline
\end{tabularx}
You could use the tabularray package. This makes it easy to change the alignment for individual cells:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{
width={0.8\textwidth},
colspec={|X|X[halign=c]|X[halign=r]|}
}
\hline
\SetCell[c=3]{halign=c} 2D - $L = 64$ \\
\hline
Speedup(x) & Func1 & \SetCell{halign=c} Func2 \\
\hline
Func2 & 35.4 & \SetCell{halign=c} - \\
\hline
Func3 & 322.8 & 9.1 \\
\hline
\end{tblr}
\end{document}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{proof}
\usepackage[left=0.60in, right=0.60in, top=0.65in, bottom=0.65in, footskip=0.1in]{geometry}
\title{Peergrade 1}
\author{anonymous}
\date{September 2020}
\begin{document}
\maketitle
\section{Exercise 1}
\begin{tiny}
\begin{table}[h]
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|}
\hline
A & B & C & A -\textgreater B & B -\textgreater $\sim$C & A -\textgreater $\sim$C & C -\textgreater $\sim$A & (A -\textgreater $\sim$C) /\textbackslash (C -\textgreater $\sim$A) & (B -\textgreater $\sim$C) -\textgreater ((A -\textgreater $\sim$C) /\textbackslash (C -\textgreater $\sim$A)) & Prop 1 \\ \hline
T & T & T & T & F & F & F & F & T & T \\ \hline
T & T & F & T & T & T & T & T & T & T \\ \hline
T & F & T & F & F & F & F & F & T & T \\ \hline
T & F & F & F & T & T & T & T & T & T \\ \hline
F & T & T & T & F & T & T & T & T & T \\ \hline
F & T & F & T & T & T & T & T & T & T \\ \hline
F & F & T & T & F & T & T & T & T & T \\ \hline
F & F & F & T & T & T & T & T & T & T \\ \hline
\end{tabular}
\end{table}
\end{tiny}
\end{document}
Can anyone help me so that the table fits in LaTeX? It almost fits, but half of the last column part goes outiside the paper. I have already tried to add /small and /footnotesize, but it doesnt work.
Please have a look at http://betterposters.blogspot.de/2012/08/the-data-prison.html how to design nice looking tables
You could use a tabularx and let latex adjust the size:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{proof}
\usepackage[left=0.60in, right=0.60in, top=0.65in, bottom=0.65in, footskip=0.1in]{geometry}
\usepackage{tabularx}
\title{Peergrade 1}
\author{anonymous}
\date{September 2020}
\begin{document}
\maketitle
\section{Exercise 1}
\begin{tiny}
\begin{table}[h]
\begin{tabularx}{\linewidth}{|l|l|l|l|l|l|l|l|X|l|}
\hline
A & B & C & A -\textgreater B & B -\textgreater $\sim$C & A -\textgreater $\sim$C & C -\textgreater $\sim$A & (A -\textgreater $\sim$C) /\textbackslash (C -\textgreater $\sim$A) & (B -\textgreater $\sim$C) -\textgreater ((A -\textgreater $\sim$C) /\textbackslash (C -\textgreater $\sim$A)) & Prop 1 \\ \hline
T & T & T & T & F & F & F & F & T & T \\ \hline
T & T & F & T & T & T & T & T & T & T \\ \hline
T & F & T & F & F & F & F & F & T & T \\ \hline
T & F & F & F & T & T & T & T & T & T \\ \hline
F & T & T & T & F & T & T & T & T & T \\ \hline
F & T & F & T & T & T & T & T & T & T \\ \hline
F & F & T & T & F & T & T & T & T & T \\ \hline
F & F & F & T & T & T & T & T & T & T \\ \hline
\end{tabularx}
\end{table}
\end{tiny}
\end{document}
Just complementing the answer, if the table is very large, it's possible to rotate the sheet by using pdflscape:
\usepackage{pdflscape}
...
\begin{landscape}
(Your Table)
\end{landscape}
My solution:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{proof}
\usepackage[left=0.60in, right=0.60in, top=0.65in, bottom=0.65in, footskip=0.1in]{geometry}
\title{Peergrade 1}
\author{anonymous}
\date{September 2020}
\begin{document}
\maketitle
\section{Exercise 1}
%\begin{tiny}
\begin{table}[h]
\begin{tabular}{|l|l|l|l|l|l|l|p{20mm}|p{22mm}|l|}
\hline
A & B & C & A -\textgreater B & B -\textgreater $\sim$C %
& A -\textgreater $\sim$C & C -\textgreater $\sim$A %
& (A -\textgreater $\sim$C) \par /\textbackslash (C -\textgreater $\sim$A) %
& (B -\textgreater $\sim$C) \par -\textgreater ((A -\textgreater $\sim$C) \par %
/\textbackslash (C -\textgreater $\sim$A)) & Prop 1 \\ \hline
T & T & T & T & F & F & F & F & T & T \\ \hline
T & T & F & T & T & T & T & T & T & T \\ \hline
T & F & T & F & F & F & F & F & T & T \\ \hline
T & F & F & F & T & T & T & T & T & T \\ \hline
F & T & T & T & F & T & T & T & T & T \\ \hline
F & T & F & T & T & T & T & T & T & T \\ \hline
F & F & T & T & F & T & T & T & T & T \\ \hline
F & F & F & T & T & T & T & T & T & T \\ \hline
\end{tabular}
\end{table}
%\end{tiny}
\end{document}
I have only edited the alignment of the 8th and 9th column (p{20mm}|p{22mm}) and added three \par in the first cell in such columns (out of dollar signs, you're typing text in the cells).
Anyway the solution with tabularx by #samcarter is very good.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I am a beginner in latex. I have the following piece of latex code. The code is working fine but I wish all the equality operators and the "if kflag=n" of each equation be aligned and written in one equation box with one equation counting number. How can it be done?
\begin{equation} %kflag=0
\left \{
\begin{array}{rl}
T =& (1-D)\sigma_{max,0}\times e^{1-\frac{\Delta_n}{\delta_n}}\times \frac{\Delta_n}{\delta_n}\\
K =& \frac{(1-D)\sigma_{max,0}}{\delta_n}\times e^{1-\frac{\Delta_n}{\delta_n}}\times (1-\frac{\Delta_n}{\delta_n})\\
\end{array}
\right.
\quad \text{if} \quad kflag=0
\end{equation}
\begin{equation} %kflag=1
\left \{
\begin{array}{rl}
T =& \alpha\sigma_{max,0}\times e^{1-\frac{\Delta_n}{\delta_n}}\times \frac{\Delta_n}{\delta_n}\\
K =& \frac{\alpha\sigma_{max,0}}{\delta_n}\times e^{1-\frac{\Delta_n}{\delta_n}}\times (1-\frac{\Delta_n}{\delta_n})\\
\end{array}
\right.
\quad \text{if} \quad kflag=1
\end{equation}
\begin{equation} %kflag=2
\left \{
\begin{array}{rl}
T =& (1-D)\sigma_{max,0}\times e^{1-\frac{\Delta_n}{\delta_n}}\times \frac{\Delta_n}{\delta_n}+T_{max}-\\
&(1-D)\sigma_{max,0}\times e\times\frac{\Delta_{max}}{\delta_n}+\\
&10\times \sigma_{max,0}\times e^{1-\frac{\Delta_n}{\delta_n}}\times \frac{\Delta_n}{\delta_n}\\
K =& 11\times\frac{(1-D)\sigma_{max,0}}{\delta_n}\times e^{1-\frac{\Delta_n}{\delta_n}}\times (1-\frac{\Delta_n}{\delta_n})\\
\end{array}
\right.
\quad \text{if} \quad kflag=2
\end{equation}
\begin{equation} %kflag=3
\left \{
\begin{array}{rl}
T =& T_{max}+K\times(\Delta_n-\Delta_{max})\\
K =& \frac{(1-D)\sigma_{max,0}*e}{\delta_n}\\
\end{array}
\right.
\quad \text{if} \quad kflag=3
\end{equation}
Right now the equations look like this
Here's an option using a multitude of nested structures - equation for the numbering, aligned for the horizontal alignment of structures and dcases (or cases) for the left-braced content.
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\newcommand{\Ddn}{\frac{\Delta_n}{\delta_n}}
\newcommand{\smz}{\sigma_{\mathrm{max}, 0}}
\begin{equation}
\begin{aligned}
&\begin{dcases}
\phantom{K}\mathllap{T} = (1 - D) \smz \times e^{1 - \Ddn} \times \Ddn \\
K = \frac{(1 - D) \smz}{\delta_n} \times e^{1 - \Ddn} \times \bigl( 1 - \Ddn \bigr)
\end{dcases} & \text{if $k$-flag} = 0 \\ % k-flag = 0
&\begin{dcases}
\phantom{K}\mathllap{T} = \alpha \smz \times e^{1 - \Ddn} \times \Ddn \\
K = \frac{\alpha \smz}{\delta_n} \times e^{1 - \Ddn} \times \bigl( 1 - \Ddn \bigr)
\end{dcases} & \text{if $k$-flag} = 1 \\ % k-flag = 1
&\begin{dcases}
\phantom{K}\mathllap{T} = \begin{aligned}[t]
&(1 - D) \smz \times e^{1 - \Ddn} \times \Ddn + T_{\mathrm{max}} \\
&{} - (1 - D) \smz \times e \times \frac{\Delta_{\mathrm{max}}}{\delta_n} \\
&{} + 10 \times \smz \times e^{1 - \Ddn} \times \Ddn
\end{aligned} \\
K = 11 \times \frac{(1 - D) \smz}{\delta_n} \times e^{1 - \Ddn} \times \bigl( 1 - \Ddn \bigr)
\end{dcases} & \text{if $k$-flag} = 2 \\ % k-flag = 2
&\begin{dcases}
\phantom{K}\mathllap{T} = T_{\mathrm{max}} + K \times (\Delta_n - \Delta_{\mathrm{max}}) \\
K = \frac{(1 - D) \smz \times e}{\delta_n}
\end{dcases} & \text{if $k$-flag} = 3
\end{aligned}
\end{equation}
\end{document}
How to use Latex to create a notation style like this image. or any other suggestions ?
\documentclass{article}
% See http://tex.stackexchange.com/questions/112576/math-mode-in-tabular-without-having-to-use-everywhere
\usepackage{amstext}
\usepackage{array}
\usepackage{amssymb}
\newcolumntype{L}{>{$}l<{$}}
\begin{document}
\textbf{Typing rules for F$_1$}
\begin{tabular}{LLL}
\hline
\text{\footnotesize(Env $\varnothing$)} &
\text{\footnotesize(Env $x$)}\\
\frac{}{\varnothing \vdash \diamond} &
\frac{E \vdash A \quad x \notin dom(E)}{E, x:A \vdash \diamond} \\
&&\\
\text{\footnotesize(Type Const} &
\text{\footnotesize(Type Arrow)}\\
\frac{E \vdash \diamond}{E \vdash K} &
\frac{E \vdash A \quad E \vdash B}{E \vdash A \rightarrow B} \\
&&\\
\text{\footnotesize(Val $x$)} &
\text{\footnotesize(Val Fun)} &
\text{\footnotesize(Val Appl)} \\
\frac{E\vdash \diamond}{E \vdash x :E(x)} &
\frac{E,x:A\vdash b:B}{E \vdash \lambda(x:A)b :A \rightarrow B} &
\frac{E \vdash b:A \rightarrow B \quad E \vdash a : A}{E \vdash b(a) : B} \\
\hline
\end{tabular}
\end{document}
My website is using Drupal. On first page I have a list of entries and each entry has own URL.
In some cases, I can't understand when, my links looks like:
/node/1%2C157
Instead of:
/node/1157
In my view I found that my content is displayed by this line:
<?php print render($page['content']); ?>
I need to understand where my content is generated and to fix this problem.
Or maybe I can fix this problem from admin panel ?
( I'm using Pathauto and Path modules to rewrite URL's, on other content is working well but in some nodes I have this problem. I tried to regenerate, to remove and generate again but for this nodes nothing happened ).
The %2C occurs in the url because of comma.Please see if you are creating any url with comma in it.This is possibly the cause of such url.
Here is the list of url encoded characters.
URL Encoded Characters
backspace %08
tab %09
linefeed %0A
creturn %0D
space %20
! %21
" %22
# %23
$ %24
% %25
& %26
' %27
( %28
) %29
* %2A
+ %2B
, %2C
- %2D
. %2E
/ %2F
0 %30
1 %31
2 %32
3 %33
4 %34
5 %35
6 %36
7 %37
8 %38
9 %39
: %3A
; %3B
< %3C
= %3D
> %3E
? %3F
# %40
A %41
B %42
C %43
D %44
E %45
F %46
G %47
H %48
I %49
J %4A
K %4B
L %4C
M %4D
N %4E
O %4F
P %50
Q %51
R %52
S %53
T %54
U %55
V %56
W %57
X %58
Y %59
Z %5A
[ %5B
\ %5C
] %5D
^ %5E
_ %5F
` %60
a %61
b %62
c %63
d %64
e %65
f %66
g %67
h %68
i %69
j %6A
k %6B
l %6C
m %6D
n %6E
o %6F
p %70
q %71
r %72
s %73
t %74
u %75
v %76
w %77
x %78
y %79
z %7A
{ %7B
| %7C
} %7D
~ %7E
¢ %A2
£ %A3
¥ %A5
| %A6
§ %A7
« %AB
¬ %AC
¯ %AD
º %B0
± %B1
ª %B2
, %B4
µ %B5
» %BB
¼ %BC
½ %BD
¿ %BF
À %C0
Á %C1
 %C2
à %C3
Ä %C4
Å %C5
Æ %C6
Ç %C7
È %C8
É %C9
Ê %CA
Ë %CB
Ì %CC
Í %CD
Î %CE
Ï %CF
Ð %D0
Ñ %D1
Ò %D2
Ó %D3
Ô %D4
Õ %D5
Ö %D6
Ø %D8
Ù %D9
Ú %DA
Û %DB
Ü %DC
Ý %DD
Þ %DE
ß %DF
à %E0
á %E1
â %E2
ã %E3
ä %E4
å %E5
æ %E6
ç %E7
è %E8
é %E9
ê %EA
ë %EB
ì %EC
í %ED
î %EE
ï %EF
ð %F0
ñ %F1
ò %F2
ó %F3
ô %F4
õ %F5
ö %F6
÷ %F7
ø %F8
ù %F9
ú %FA
û %FB
ü %FC
ý %FD
þ %FE
ÿ %FF