LaTeX: Images, Figures, Wrapping and the Logic Behind Them

แชร์
ฝัง

ความคิดเห็น • 74

  • @JC-cr5ty
    @JC-cr5ty 5 ปีที่แล้ว +76

    I wish there was commands like:
    \dontsendfiguretonextpage
    or
    \dontwasteatonofspace
    or
    \placenormallyanddontbestupidaboutit

    • @jonatang5966
      @jonatang5966 5 ปีที่แล้ว +7

      There is the placement option [H], if you include the package float. But yeah, it feels unnecessarily difficult to get the figures where you want xD

    • @magtazeum4071
      @magtazeum4071 4 ปีที่แล้ว +2

      hahaha..this comment made my day

    • @enderkayhan555
      @enderkayhan555 2 ปีที่แล้ว +2

      @@jonatang5966 this helped ty!

    • @AlDumbrava
      @AlDumbrava ปีที่แล้ว +1

      I found that adding a \filbreak after the figure helps suggest to LaTeX that I want the break after the figure not before.

  • @UsernameDP
    @UsernameDP 2 ปีที่แล้ว +10

    My 8 hours of reading how to use images in latex has been simplified into a short 13 minute video.

  • @TheCalcSeries
    @TheCalcSeries ปีที่แล้ว

    I've been stuck on a paper for the last couple of days bc I couldn't find the [h] thing. Now I can finally move some figures around. Thank you :)

  • @pietadundershtitz1982
    @pietadundershtitz1982 7 ปีที่แล้ว +2

    That was something I was looking for!

  • @igaurab
    @igaurab 4 ปีที่แล้ว +4

    Hi how can we make figure labels like 2.1 2.2 according to the sections?

  • @compphysgeek
    @compphysgeek 6 ปีที่แล้ว +3

    what I like to do is watch youtube videos on lunch breaks. so here I am, having something nice to eat, and an interesting youtube video, when all of a sudden the guy in the videos pulls up a picture of a hand with frostbite .. very appetising :D

  • @user-iv4dj6tj6r
    @user-iv4dj6tj6r 4 ปีที่แล้ว

    Could you please tell me why wrap figure doesn't work in an "description-item" environment and if there are altenatives for that problem?

  • @vincentpham7445
    @vincentpham7445 6 ปีที่แล้ว

    Hi, have you tried to solve the space issue when you put the space between the image file name? somehow, vim has error when try to compile it.

  • @c.eckhardt597
    @c.eckhardt597 11 หลายเดือนก่อน

    Thank you for this explanation! That was really helpful.

  • @fermiLiquidDrinker
    @fermiLiquidDrinker 7 ปีที่แล้ว +58

    As an emacs user, I can definitely say that my hands are worse then what you have shown. Don't do emacs, kids.

    • @LukeSmithxyz
      @LukeSmithxyz  7 ปีที่แล้ว +50

      vim: does amazing thing in 10 keypresses
      emacs: does same amazing thing only in 3 keypresses, but each requires you to hold down at least three other modifier keys with the same finger

    • @fermiLiquidDrinker
      @fermiLiquidDrinker 7 ปีที่แล้ว +5

      Emacs: Has a language that no one uses besides IRC clients and bad games
      Vim: Gives you an extra kilobite because hey, just use regular lisp if you want it that bad.

    • @sohilkaushal4100
      @sohilkaushal4100 4 ปีที่แล้ว +1

      @@fermiLiquidDrinker Hey although we have to agree that one of the greatest things why people use Emacs is Org mode and it is irreplaceable

  • @pughums
    @pughums 6 ปีที่แล้ว

    What numbering scheme is showing on the left margin of your editor (vim I presume)?

  • @robinhahn6987
    @robinhahn6987 5 ปีที่แล้ว +4

    This is exactly what was needed... I realise these are old videos, but mate, you rock! Trying to get my head around LaTeX / Memoir... not trivial. This helps enormously!

  • @prahe86
    @prahe86 6 ปีที่แล้ว

    Thanks again for another great video

  • @memastamat9982
    @memastamat9982 6 ปีที่แล้ว

    Hello, everytime I try to ref a figure I get 2 semicolons instead.

  • @compphysgeek
    @compphysgeek 5 ปีที่แล้ว +10

    forgetting how to spell caption and forgetting to add units, is that the medical effects of using vim? ;)
    Respectfully, an evil mode emacs user

  • @Keuneollie
    @Keuneollie ปีที่แล้ว

    Do you know how to prevent text from getting infront of the image?

  • @vaibhavahire4055
    @vaibhavahire4055 4 ปีที่แล้ว +1

    Any idea on how to crop an image though? It's so easy in Word to just paste some screenshot and crop to desired shape.

    • @krabkrabkrab
      @krabkrabkrab ปีที่แล้ว +1

      use Gimp to make a new figure.

  • @IncapaxPlays
    @IncapaxPlays 6 ปีที่แล้ว +4

    How do you achieve the live preview? And what kind of pdf viewer are you using? I'm struggling a little getting started with my setup.
    Your videos are inspiring.

    • @galvanizeddreamer2051
      @galvanizeddreamer2051 6 ปีที่แล้ว +3

      Check out this video by him, it should explain all of that: th-cam.com/video/NwnYHoNtfJ0/w-d-xo.html

    • @TheR971
      @TheR971 6 ปีที่แล้ว

      github.com/xuhdev/vim-latex-live-preview

    • @InternetHuman16
      @InternetHuman16 2 ปีที่แล้ว +1

      Probably his question was answered, but for others, TeXstudio is the best LaTeX editor out there.

    • @sitter2207
      @sitter2207 ปีที่แล้ว

      I recommend vim/neovim with vimtex plugin, and zathura as pdf viewer. Thats what luke is using i guess (may be except for the spesific plugin but they all do the live preview)

    • @ghost-user559
      @ghost-user559 ปีที่แล้ว

      @@InternetHuman16 Lyx is even easier if you are on a deadline and don’t want to mess with code

  • @wahyunindiarahman8736
    @wahyunindiarahman8736 3 ปีที่แล้ว

    thank you very much!! really helpful

  • @joshuasegal4161
    @joshuasegal4161 6 ปีที่แล้ว

    THANK YOU! but is there any way to get rid of the Figure 1: prefix?

    • @robotdna
      @robotdna 5 ปีที่แล้ว +2

      Place an asterisk after the word caption, resulting in \caption*{text}. This also works with \section*{} and \subsection*{} variants.

  • @srrr4559
    @srrr4559 ปีที่แล้ว

    Saved by uncle Luke once again. Never thought I'd need to use LATEX ever, but life lifes you into it I guess.

  • @sinafarokh28
    @sinafarokh28 3 ปีที่แล้ว

    How did you get that picture??

  • @manwa5192
    @manwa5192 7 ปีที่แล้ว

    Hey man, how about a video that shows how to make a "general correspondence letter" to a company or friend.

  • @carlosscala5121
    @carlosscala5121 5 ปีที่แล้ว

    Very good!!! Thank you

  • @ramzi4883
    @ramzi4883 4 ปีที่แล้ว

    how do you make your latex interface look like that?

  • @JavierPortillo1
    @JavierPortillo1 ปีที่แล้ว

    Fantastic! Thanks!

  • @saomoon
    @saomoon ปีที่แล้ว

    where can i download this arch.png?

  • @martinmaartensson
    @martinmaartensson 5 ปีที่แล้ว

    How do you do the thing with the numbers?? It looks like you are scrolling up and down to change the value. :D

    • @martinmaartensson
      @martinmaartensson 5 ปีที่แล้ว +2

      AH i found it out :D
      Ctrl+x for lowering and
      Ctrl+a for raising the value :-)

    • @yash1152
      @yash1152 2 ปีที่แล้ว

      > _It looks like you are scrolling up and down to change the value_
      ​@@martinmaartensson i was wondering about that too (:
      thanks a lot for sharing your findings (:

  • @Bbdu75yg
    @Bbdu75yg 4 ปีที่แล้ว

    Awesome thank u very much !!!!

  • @vineeshvs
    @vineeshvs 4 ปีที่แล้ว

    Related link (Drawing figure in Xfig and importing it in a Latex document): th-cam.com/video/7E0TTG1HTKs/w-d-xo.html

  • @harshdeepkanhai
    @harshdeepkanhai 6 ปีที่แล้ว

    How are you compiling live in latex.

    • @TheR971
      @TheR971 6 ปีที่แล้ว

      github.com/xuhdev/vim-latex-live-preview

  • @marklabaclado2176
    @marklabaclado2176 ปีที่แล้ว

    Why does your machine render so fast? Mine took about 8-10 seconds before rendering even a sentence. I'm running on a 64-bit, 6-GB RAM laptop.

  • @Pa_One
    @Pa_One 4 ปีที่แล้ว

    Which latex editor is that?

    • @jordanwarne911
      @jordanwarne911 4 ปีที่แล้ว

      Vim, a text editor; and a live compiler

  • @preetamgurav4139
    @preetamgurav4139 2 ปีที่แล้ว

    My image keeps popping in a new page

  • @eabrar
    @eabrar 3 ปีที่แล้ว

    good one

  • @waseemahmad983
    @waseemahmad983 6 ปีที่แล้ว

    nice video

  • @shijinmathew7768
    @shijinmathew7768 5 ปีที่แล้ว

    Nice..

  • @user-zq3vq3ce6r
    @user-zq3vq3ce6r 4 ปีที่แล้ว

    yo you guys notice that at 5:50 that when he puts the emacs.jpg inside figure some portion of blindtext that was ABOVE the image actually went UNDER the image after compilation. But the syntax shows that that blind text is supposed to show BEFORE the figure. Like really, can some one explain this thing to me.

    • @LukeSmithxyz
      @LukeSmithxyz  4 ปีที่แล้ว +1

      LaTeX has built in constraints that decide where to optimally put images and other floating objects (which you can change if you like). In that case, there would've been two little lines of text alone at the top of the page, then the image, then the text below, so LaTeX automatically wants to avoid orphaned text, so it put it below the image.

  • @mrsentinel4911
    @mrsentinel4911 ปีที่แล้ว

    The subversive jokes are excellent.

  • @craterface12
    @craterface12 3 ปีที่แล้ว

    Did he just pronounce ratio as 'raseo'?

  • @AuDHDQ
    @AuDHDQ 3 ปีที่แล้ว

    Emacs gang rise up

  • @LEVONGYUMISHYAN
    @LEVONGYUMISHYAN 5 ปีที่แล้ว

    HOW TO INSERT IMAGES ON GROFF?

  • @lemonlord7475
    @lemonlord7475 4 ปีที่แล้ว

    LaaTeX

  • @FranciscoMNeto
    @FranciscoMNeto 4 ปีที่แล้ว

    At least people who use emacs can *actually* spell.

  • @tusharbhatt857
    @tusharbhatt857 2 ปีที่แล้ว

    Blur video

  • @2MilMil
    @2MilMil 3 ปีที่แล้ว +1

    Anyone triggered by "Law"tex?

    • @LHCB6
      @LHCB6 2 ปีที่แล้ว

      La-tek. It's because there is are letters from different languages.

    • @ghost-user559
      @ghost-user559 ปีที่แล้ว

      @@LHCB6 Isn’t it named after one of the creators of LaTeX?

    • @TheBananaman-sg4xd
      @TheBananaman-sg4xd 8 หลายเดือนก่อน

      "L" like in "Land", "a" like in "hArd", "T" like in "Ten", "e" like in "lEft", "X" has no English equivalent, but it's like "ch" in Scottish or German "loCH" or "x" in Russian

  • @HansPeter-qg2vc
    @HansPeter-qg2vc 7 ปีที่แล้ว +4

    Vim users are always so hateful against Emacs. Emacs users are far better, of course. Vim users probably only are so angry because they use a text editor inferior to Emacs.

    • @LukeSmithxyz
      @LukeSmithxyz  7 ปีที่แล้ว +30

      vim users are so unenlightened and low on the spectrum that they can still understand what is a joke and what isn't. Sad!

    • @HansPeter-qg2vc
      @HansPeter-qg2vc 7 ปีที่แล้ว +4

      +Luke Smith, I got to admit that that's a pretty good and clever answer.