Community talk ⇒ Best LaTeX Resources on YouTube?
-
- Posts: 139
- Joined: Tue Mar 10, 2015 11:06 am
Best LaTeX Resources on YouTube?
https://www.youtube.com/playlist?list=P ... 31D3EBC449
Now that I know that beginner-level stuff, though, I'm ready to move on.
Can anybody suggest a YouTube playlist to follow up with? There are so many videos there I don't know where to go next.
Thanks!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Best LaTeX Resources on YouTube?
Nicola Talbot published some nice books for novices and advanced users, all of them reviewed by a large community of experienced LaTeX users. Please have a look at them, they are free. Dickimaw LaTeX books
btw: so, far, i haven't seen a single video on Youtube, that was 100 percent correct.
-
- Posts: 139
- Joined: Tue Mar 10, 2015 11:06 am
Best LaTeX Resources on YouTube?
What, exactly, was wrong with those videos?Johannes_B wrote:I picked one of the videos (the first on text formatting) and it started. My first thoughts were, you should never use those commands within the document. I skipped a bit and at minute four was cursing the video because what was told there is simply, excuse me, crap. Stuff like that promotes wrong bits and pieces that never stop floating around...
btw: so, far, i haven't seen a single video on Youtube, that was 100 percent correct.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Best LaTeX Resources on YouTube?
textbf
and friends shoudl never be used with in the body of a document. Better to use semantic markup and user-defined commands.Font size switches are simple commands, using them as an environment is a wide spread misunderstanding, distributed over generations and more generations to come. The thing is, that the LaTeX ekrnel defines that stuff, that this still works. But i would never recommend that.
Unfortunately, Nicola introduces that as well. Gotta talk to her about that.
-
- Posts: 139
- Joined: Tue Mar 10, 2015 11:06 am
Best LaTeX Resources on YouTube?
Johannes_B wrote:Commands liketextbf
and friends shoudl never be used with in the body of a document. Better to use semantic markup and user-defined commands.
Font size switches are simple commands, using them as an environment is a wide spread misunderstanding, distributed over generations and more generations to come. The thing is, that the LaTeX ekrnel defines that stuff, that this still works. But i would never recommend that.
Unfortunately, Nicola introduces that as well. Gotta talk to her about that.
To be honest, I'm completely new to programming and LaTeX and didn't actually understand this message. What is "semantic markup"? I think (I know what user-defined commands are, though.)
Why is it so bad to use environments for font sizing?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Best LaTeX Resources on YouTube?
All this is hidden, you can later decide that sections shall be bigger, or use another font and all instances of section will change.
Now, suppose you have latin names of plants species, you are setting them using textbf. Later you decide to change it to italics. You have to redo every instance, which might be ok for 5 occurences, but is highly impractical for 1000 occurences.
Following some source code, please cpy it into your favourite LaTeX editor and view source and pdf side by side. You can also click on »Open in Writelatex« (which is now overleaf) to see everything.
Code: Select all
\documentclass{article}\usepackage{parskip}%Just for this example\usepackage{xcolor}\usepackage{blindtext}\begin{document}\section{Fragaria, the strawberry}\begin{bfseries}Fragaria\end{bfseries}\par\begingroup\bfseries Fragaria\endgroup\par{\bfseries Fragaria}\parAll look the same, internally, they are the same as well, more orless.From now on, we want to print species colored. We have used thelow-level \verb!\bfseries! for our species Fragaria exclusively,we can just redefine it.{\renewcommand{\bfseries}{\color{blue}}{\bfseries Fragaria}\par\section{This is a test section}Suddenly, the section heading is blue as well. By default,sections are typeset in bold.}\clearpage\section{user defined commands}We define a new command, that we use and that is not alreadydefined:\par\newcommand{\species}[1]{\textbf{#1}}\species{Fragaria}\parFrom now on, we want to print species colored. If we want to dothis globally, we can mv the command to the preamble, or changethe initial definition in the preamble. \par\renewcommand{\species}[1]{\textcolor{blue}{#1}}\species{Fragaria}\par\section{colored?}\normalfont\Large\bfseries\refstepcounter{section}\thesection\hspace{2.3ex}Nosection heading\par\normalfont\normalsize\noindentSome normal text
To put it in a nutshell, though placing the commands inuse of an environment with it working pretty well, there are situations where it terribly breaks down. Leaving an inexperienced user confused, looking for odd workarounds. That is why i am discouraging the use of commands as environments.
Please play around with the code above and ask if needed.