Display source code in LaTeX - source code listing

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

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

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

    I have probably said this before already but I am constantly amazed by your videos. It is always straightforward and to the point. AND so immensely useful. Thank you so much once again.

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

      Glad you like them and thank you for taking the time to write a comment. I really appreciate that.

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

    Your videos are very useful.

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

      Thank you for writing a comment, I am very happy to hear that. If possible, please share my video with people who may find it useful.

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

    Grazie fede per questo video. Molto utile per un neofita come me!

  • @fb55255
    @fb55255 11 หลายเดือนก่อน +2

    How do you make the line numbers non selectable? I want the reader to be able to copy the code from the document but when doing so the line numbers are taken as well.

  • @abrahamayele5684
    @abrahamayele5684 11 วันที่ผ่านมา

    grazie

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

    grazie broo, gli italiani sono i migliori

  • @smukec5753
    @smukec5753 4 หลายเดือนก่อน

    I cant figure it out how to add the "Source Code" on the begining of each caption, so there arent just numbers, I want full name to be displayed. Do you know perhaps?

  • @Not_The_Pizza_Guy
    @Not_The_Pizza_Guy 10 หลายเดือนก่อน

    how to make line numbers non selectable when selecting to copy and paste?

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

    Is there any way to highlight integer and float/double literals in a certain color?

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

      Hi, sorry but I am currently on leave and I do not have access to my computer. You can check on the package official documentation to see how and if that can be done.

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

    Hello sir, I just have a question: how can we preserve indentation and new lines when copying lines of code from overleaf?

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

      Hi, I am currently overseas and I don't have access to my computer, please consult the official document. Sorry for that.

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

    Thanks sir

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

    Thank you..

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

    Grazie for the video Federico! Where is the link for using blank to reformat the code when lines are too long? Thanks!

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

      Thank you so much. I'll need to look into it. Which programming language are you using?

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

      @@FedericoTartarini python of course my friend

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

      Here is the link: th-cam.com/video/dxFsjgtyAHw/w-d-xo.html

  • @АидаБисенгалиева-е1л
    @АидаБисенгалиева-е1л 2 ปีที่แล้ว

    great video!!!and I have a question: how to connect the Cyrillic alphabet? my text just disappears

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

      Unfortunately I don’t have a quick answer to this problem. Please have a look online and you should be able to find a solution

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

    thankyou for your explanation, that's a great video but i have one question, how to change the caption originally "Source Code 1" to "Source Code 1.1" or "Source Code 3.1" etc, according to chapter number? Please reply my question.

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

      This thread should contain the answer you are looking for: tex.stackexchange.com/questions/28333/continuous-v-per-chapter-section-numbering-of-figures-tables-and-other-docume

  • @TM-bj6zh
    @TM-bj6zh ปีที่แล้ว

    how do you reference that label you created within the square brackets, /ref{} dosnt seem to be able to find it

    • @fb55255
      @fb55255 11 หลายเดือนก่อน


      ef{lst:code} , unfortunately with listings the suggestions never pop up but as long as you type the label correctly it works.

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

    well, if i want to do this documentation on overleaf, what is the library to activate?

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

      You need to use the same packages as shown in the video.

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

    great video

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

      Sorry but I am not 100% sure for this specific case I would suggest you checking their official documentation

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

      @@FedericoTartarini thanks for the fast reply

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

    Can Latex receive the json object from API ?🤔

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

      What do you mean? You could use Python to do the request.

  • @king_of_the_pirates238
    @king_of_the_pirates238 8 หลายเดือนก่อน

    Please provide the zip file for your project 🙌

    • @FedericoTartarini
      @FedericoTartarini  8 หลายเดือนก่อน

      You can find a similar code here: federicotartarini.github.io/docs/latex/from_zero_to_hero#source-code

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

    How to add (_),(%) on python source code in overleaf

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

      Try by writing \% is this working?

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

      @@FedericoTartarini yes🙏😊
      Also pls reply how to add (>) on python source code in overleaf...

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

      > should not be an issue in latex

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

      @@FedericoTartarini when I type (>) on python source code and run it ,the result will came as (¿) how can I solve this..

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

      Try \> please let me know if it works.

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

    Hello
    I need your code please.