mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   science_man_88 (https://www.mersenneforum.org/forumdisplay.php?f=140)
-   -   You might be reading the LaTeX wiki pdf too much when... (https://www.mersenneforum.org/showthread.php?t=23936)

science_man_88 2018-12-27 01:14

You might be reading the LaTeX wiki pdf too much when...
 
[CODE]\color{cyan}{\foreach \n in {a,b,c,d,e,f,g,h,i,j,k,l,m}{
\foreach \i in {a,b,c,d,e,f,g,h,i,j,k,l,m}{\!\!\rule[0pt]{\baselineskip}{0.5pt}
\begin{rotate}{90}\rule[15pt]{\baselineskip}{0.5pt}\end{rotate}}\\}
}[/CODE]

generated a grid for fun.

Nick 2018-12-27 08:39

Nice!
Have you tried tikz already?

[CODE]\usepackage{tikz}[/CODE]

science_man_88 2018-12-27 11:38

[QUOTE=Nick;504087]Nice!
Have you tried tikz already?

[CODE]\usepackage{tikz}[/CODE][/QUOTE]

yeah my example used tikz, mathtools, rotating, and xcolor, trying to add labeling is a pain though.

science_man_88 2018-12-27 14:43

[CODE]\begin{tikzpicture}
\foreach \n in {1,2,3,4,5,6,7,8,9}{
\foreach \i in {1,2,3,4,5,6,7,8,9}{
\draw[cyan] (\n\baselineskip,\i+1\baselineskip)
--(\n\baselineskip,\i\baselineskip) node{\tiny(\n,\i)}
--(\n+1\baselineskip,\i\baselineskip);
}}
\end{tikzpicture}[/CODE]

only went up to 9 because even then theres overlap of node labeling. I'll Admit I looked it up in the manual.

science_man_88 2018-12-31 20:32

[CODE]\count255=1
\loop
\foreach \n in {\section ,\subsection ,\Thm }
\n{};
\ifnum\count255 < 255
\advance\count255 by 1
\repeat [/CODE]

basically other than a proper list of each and a way to map it to the proper ordering of things all you need on top of autonumbering and a few cool packages.


All times are UTC. The time now is 04:45.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.