TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How I'm able to take notes in mathematics lectures using LaTeX and Vim (2019)

248 点作者 jamesblonde超过 1 年前

32 条评论

mo_42超过 1 年前
When I was studying, I sometimes saw classmates typing the lecture directly in LaTeX. To me, they always seemed very busy and a little stressed. Also, it seemed that learning and understanding wasn&#x27;t their primary goal rather than having beautiful lecture notes.<p>I would have liked to have a tabled with a nicely working pen. But good old paper and pencil also did the job. Some professors even recommend not taking notes at all but rather preparing the lecture. Then, attending it by primarily listening and trying to understand and then working on the homework.
评论 #39263414 未加载
评论 #39266537 未加载
评论 #39265005 未加载
评论 #39262018 未加载
评论 #39265554 未加载
评论 #39285627 未加载
评论 #39268716 未加载
评论 #39261994 未加载
blagie超过 1 年前
I took notes in LaTeX in my college. I didn&#x27;t need macros or the fancy editor setup. It&#x27;s not hard. It turned passive learning into active. I didn&#x27;t have a few of the formatting nuances as pretty as he did (e.g. boxes around theorems), but that&#x27;s not hard.<p>The key difference between him and me are the figures. It&#x27;s worth looking at his notes here:<p><a href="https:&#x2F;&#x2F;castel.dev&#x2F;notes" rel="nofollow">https:&#x2F;&#x2F;castel.dev&#x2F;notes</a><p>The figures are beautiful.<p>How?!?!?!?<p>(Footnote due to recent bad experiences to pre-empt stupid answers: &quot;Inkscape&quot; is not an answer. I use Inkscape, and I know how long these things would take me. It&#x27;s definitely not something I could do anywhere close to real-time. I want to know what conceivable workflow in Inkscape would allow those sorts of figures in even a significant fraction of lecture speed, let alone real-time)
评论 #39260960 未加载
评论 #39260832 未加载
评论 #39261657 未加载
评论 #39260855 未加载
评论 #39261547 未加载
评论 #39260824 未加载
评论 #39260811 未加载
taopai超过 1 年前
I tried doing this. It&#x27;s feasible. But...<p>It didn&#x27;t worked for my learning. As years pas by I value more paper, pen and books. Physical books. I am not anti tech, I was raised with always evolving digital technology. I read 300 eBooks I had NO WAY to pay for.<p>Latex looks awesome, and you feel proud when you put your notes in this format. But you feel equally proud when you are able to make a page equally beautiful with your hand. I enjoy solving things manually.<p>The best teacher I had in uni gave us handwritten skeleton notes which you had to complete while following the class. Completions used to be examples or demos, or long development steps to reach a solution.<p>This same course I read in a book about learning that this kind of material is the best for cognition. I felt grateful for that man. Despite being great at his field, and be super busy and travel a lot he really was into teaching undergrads and trying to use the right learning tools.<p>The course was heavy, really hard, but it was very rewarding.<p>I am not trying to downsize this article, It inspired me to push my skills. Just giving my experience.
评论 #39262022 未加载
aldanor超过 1 年前
For writing math notes (especially in vim), I switched to using Typst (<a href="https:&#x2F;&#x2F;typst.app" rel="nofollow">https:&#x2F;&#x2F;typst.app</a>).<p>Here&#x27;s a few points:<p>- The syntax is a lot lighter and easier to type fast. I was up and running in half hour after starting to use it. Once in a while I can look up some symbol name in the docs but that&#x27;s about it. I can type math notes almost at the speed of writing by hand and my right pinky doesn&#x27;t fall off because of all backslashes and curly braces.<p>- Empty document is a valid document. No preambles, no includes etc, it&#x27;s all optional and the defaults are sensible. Just start typing.<p>- It&#x27;s incremental. Live preview from neovim is in the browser and it&#x27;s lightning fast, pretty much immediate. No pdf sync pain. No build files, makefiles and all that. Just start typing.<p>While it&#x27;s not going to beat latex in terms of serious academic use, for personal use and notes it&#x27;s close to perfect.<p>(And of course it&#x27;s written in Rust...)
评论 #39267758 未加载
whatupmiked超过 1 年前
According to the comments in the most recent post on this blog the author has passed away: <a href="https:&#x2F;&#x2F;castel.dev&#x2F;post&#x2F;research-workflow&#x2F;" rel="nofollow">https:&#x2F;&#x2F;castel.dev&#x2F;post&#x2F;research-workflow&#x2F;</a><p>I stumbled on this blog recently when researching the same topic (nvim +latex). I found this more recent blog (<a href="https:&#x2F;&#x2F;www.ejmastnak.com&#x2F;tutorials&#x2F;vim-latex&#x2F;intro&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.ejmastnak.com&#x2F;tutorials&#x2F;vim-latex&#x2F;intro&#x2F;</a>), by another author, inspired by this original author useful as well.<p>I found this blog post to be very helpful and the author was obviously a very good writer and I am sure he will be missed. Condolences to his friends and family.
lkdfjlkdfjlg超过 1 年前
This seems like a distraction from the substance.<p>In my experience studying physics, most of the learning happens by yourself trying to solve problems, putting hypothesis to yourself, trying, failing, examining what failed.
评论 #39261303 未加载
评论 #39261609 未加载
nomilk超过 1 年前
This is so cool, and ambitious, as it takes high level vim skills to keep up with human explanations as well as high level latex skills.<p>Recorded lectures probably makes this approach work well (since you could backtrack if required). I did uni in the days before recorded lectures, and if your scrawling pen&#x2F;paper notes contained a typo in an equation there was no easy way to get the correction - you had to ask around or consult the lecturer during office hours. A PITA frankly. And that&#x27;s if you noticed the equation might be wrong.<p>There&#x27;s such an incredible joy in good note taking. I only learned vim in the last year, and it increased my joy in programming immeasurably (well, I&#x27;d guess it about doubled if I had to quantify it).<p>If I studied economics again, I&#x27;d 100% learn LaTeX so I could take math notes in the way the author has. They&#x27;re beautiful and timeless (literally, if committed to source control).
venice_benice超过 1 年前
I am unable to reply to any comments, so I’ll add my reply to blagie as a top-level comment instead: Gilles himself documents his process of using Inkscape here: <a href="https:&#x2F;&#x2F;castel.dev&#x2F;post&#x2F;lecture-notes-2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;castel.dev&#x2F;post&#x2F;lecture-notes-2&#x2F;</a><p>As a summary, he uses a custom keyboard shortcut manager¹ which allows him to compos multiple keystrokes (and also saves commonly used styles):<p>&gt; For example, when I press `s` and `f` simultaneously, my shortcut manager will apply a solid stroke and a grey fill to the current selection. When I want the stroke to be thick, I press `s+f+g` together, where `g` stands for thick (as the `t` key is hard to reach).<p>[1]: he makes it available on GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;gillescastel&#x2F;inkscape-shortcut-manager">https:&#x2F;&#x2F;github.com&#x2F;gillescastel&#x2F;inkscape-shortcut-manager</a>
cge超过 1 年前
As an undergraduate a number of years ago, in physics, I also experimented with taking notes in LateX. My approach, rather than making writing faster through editor wizardry, was to extensively use \def and \newcommand to abbreviate everything. The resulting sources were not easily readable by others, but could be written very quickly.<p>These went beyond consistent, global abbreviations, or even course-level abbreviations: both were easy (and I can remember a few I used, like \beq&#x2F;\eeq and \bea&#x2F;\eea for beginning and ending an equation or eqnarray, etc, and \lt and \rt for \left and \right), but I could also quickly add definitions while taking notes, so if frequent symbols, or even whole expressions, showed up in a lecture I could \def them when it became likely they&#x27;d be used again. I could sometimes outpace the lecturer, working through equations on a board, because I could see where they were going to repeat expressions and just use the abbreviation I had made previously.<p>The larger problem I had, as an undergraduate at a time when many students had laptops but I was often the only one who would use one in class, is that I would worry about the typing being annoyingly loud. My use of Dvorak today is largely as a result of my exploring ways of trying to make my typing quieter: comparing typing on the same keyboard and around the same speed, I do seem to be able to type with considerably less noise with Dvorak than with QWERTY.
luispauloml超过 1 年前
For those wondering how to accomplish something similar with Emacs: <a href="https:&#x2F;&#x2F;karthinks.com&#x2F;software&#x2F;latex-input-for-impatient-scholars&#x2F;" rel="nofollow">https:&#x2F;&#x2F;karthinks.com&#x2F;software&#x2F;latex-input-for-impatient-sch...</a><p>It does not cover creating figures, though.
bowsamic超过 1 年前
This always reminds me of that time I submitted an absolutely awful physics lab report and was incredulous because I had written it in LaTeX and it looked nicely typeset. I&#x27;m not accusing this guy&#x27;s notes of being bad, but I definitely think it is a strange &quot;optimisation&quot; when pen and paper exist. It&#x27;s not like you&#x27;re going to stop using pen and paper in grad school either.<p>That said, by the end of my physics degree I&#x27;d probably used thousands of sheets of paper...
amself超过 1 年前
RIP Gilles Castel.
评论 #39260492 未加载
评论 #39260950 未加载
评论 #39267123 未加载
评论 #39261414 未加载
logifail超过 1 年前
Appreciate this may not be what the HN audience wants to hear, but there is evidence that writing things down helps you remember information better than typing things out on a computer.<p><a href="https:&#x2F;&#x2F;www.newscientist.com&#x2F;article&#x2F;2414241-writing-things-down-may-help-you-remember-information-more-than-typing&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.newscientist.com&#x2F;article&#x2F;2414241-writing-things-...</a><p><a href="https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2022&#x2F;11&#x2F;23&#x2F;why-writing-by-hand-is-still-the-best-way-to-retain-information&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2022&#x2F;11&#x2F;23&#x2F;why-writing-by-hand-is...</a>
评论 #39261944 未加载
评论 #39261992 未加载
评论 #39262561 未加载
评论 #39262577 未加载
评论 #39266640 未加载
评论 #39262753 未加载
评论 #39263335 未加载
评论 #39261288 未加载
评论 #39265268 未加载
评论 #39262011 未加载
评论 #39266234 未加载
javier_e06超过 1 年前
In mathematics classes I cannot imagine how to used LaTex and&#x2F;or vim to draw and shade the area under a curve to represent the integral. I have my lucky Pentel Mechanical pencil which took me over hours long tests back when I was in school. It is completely broken know but I keep as some sort of amulet. Only 3 people needed to understand my writings: The teacher, the TA, and me. I once had a heated argument with a TA. I wrote a hex number and I write the four closed, like this (4) But it was mistaken for an (A). I wished then the tests where typed.
ykonstant超过 1 年前
I created a similar toolset using UltiSnips and vimtex, which I demonstrated here: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;unixporn&#x2F;comments&#x2F;jtjol5&#x2F;cinnamon_latex_workflow_in_vim&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;unixporn&#x2F;comments&#x2F;jtjol5&#x2F;cinnamon_l...</a><p>The dotfiles powering the demo (particularly, the UltiSnips folder) are at my github: <a href="https:&#x2F;&#x2F;github.com&#x2F;ykonstant1&#x2F;dotfiles">https:&#x2F;&#x2F;github.com&#x2F;ykonstant1&#x2F;dotfiles</a>
major505超过 1 年前
My handwriting is terrible, and I use to much force, so I always end with lots of pain in my writs after writing for to long.<p>I went back to university after my divoce, mainly to have somthing to occupy my mind at the time. I did most of my annotations in Markdown.<p>The graphs and other images I would snap a photo in my phone from the blackboard, grab them from onedrive and puting the reference in my document, and after classI would drawin the proper application or get for a text and internet and copy paste.<p>For fluxograms I would use Mermaid.<p>For the editor I would just use vscode. I use vscode for almost everything, even control my spotify playback...<p>Here is a example of some of my anotiations <a href="https:&#x2F;&#x2F;github.com&#x2F;joetorres&#x2F;Materiais01&#x2F;blob&#x2F;master&#x2F;04.N%C3%BAmeros%20qu%C3%A2nticos.md">https:&#x2F;&#x2F;github.com&#x2F;joetorres&#x2F;Materiais01&#x2F;blob&#x2F;master&#x2F;04.N%C3...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;joetorres&#x2F;Materiais01&#x2F;blob&#x2F;master&#x2F;07.Estrutura%20cristalina.md">https:&#x2F;&#x2F;github.com&#x2F;joetorres&#x2F;Materiais01&#x2F;blob&#x2F;master&#x2F;07.Estr...</a>
westurner超过 1 年前
Previous discussion:<p>&quot;How I&#x27;m able to take notes in mathematics lectures using LaTeX and Vim&quot; (2019) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19448678">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19448678</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32420925">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32420925</a> :<p>&gt; <i>Computational Notebook speedrun competition ideas:</i>
评论 #39267459 未加载
评论 #39265413 未加载
ayhanfuat超过 1 年前
Someone created a VS Code version: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;LaTeX&#x2F;comments&#x2F;11fipv1&#x2F;come_in_if_you_are_using_vscode&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;LaTeX&#x2F;comments&#x2F;11fipv1&#x2F;come_in_if_y...</a>
kataklasm超过 1 年前
I&#x27;ve been using various tools and configs regarding this for years now, with tons of my own modifications to them. These write-ups and corresponding repositories are of great value to the vim&#x2F;LaTeX community and Gilles&#x27; loss is tragic.<p>Rest in peace, you won&#x27;t be forgotten.
tippytippytango超过 1 年前
I used to do this, but I preferred using lyx since it would typeset the equation as you typed it. I did it not for beautiful notes but out of sheer laziness. I could copy and paste the previous equation and tweak it to form the next step. More so useful for homework.
gjjgjgjgj超过 1 年前
In grad school I started taking all my notes in Sublime with the Unicode-Math mod. I can effortlessly type any unicode characters with &quot;\alias&quot;. I&#x27;ve installed that on all my computers since then because it&#x27;s so easy and convenient.<p>\int \pi \geq \forall x \underbar \overbar \prime \^2 \therefore \pm \psi \implies \sqrt \2&#x2F;3 y \approx \Omega<p>produces<p>∫π ≥ θ ∀ x̱̅′² ∴ ±ψ ⟹ √⅔y ≈ Ω<p>I even made my own mod to shorten the aliases of the most commonly used symbols. I long ago gave up trying to memorize all my notes. I can type as fast as I can write and then everything is easy to read and easy to search and instantly synced to cloud without having to transcribe anything after the fact. I had several professors ask me to show them how to set it up.
评论 #39269610 未加载
CisEternal超过 1 年前
Did almost all my notetaking in LateX for the majority of high school and college. Worked out surprisingly well, much better than my bottom barrel handwriting at least. Takes more time than writing, but having nice, well readable lecture notes helped me a lot.
cryptonector超过 1 年前
I think even if I were very proficient in LaTeX I&#x27;d still not be able to keep up with the lecture. It seems to me that pen and paper is better. Even better would be if the professor would just post the notes for their own lectures.
LectronPusher超过 1 年前
I agree with other commenters that paper and pencil are the way to go for true learning, but the other week I left my notebook at home for a lecture, and was able to keep good notes with Typst, although my typing speed isn&#x27;t excellent. Curious what other people think about Typst vs Latex for notes?<p>Edit: reading a bit further, it seems like Typst has the ability to do a lot of the snippets as-is ($-&gt;$ is \to, $in$ is \in, etc.), and since variables in Typst are usable by mere mortals, it&#x27;s easier to hack in the language you already use. For example, I use `#let la = $lambda$` as a shortcut.
评论 #39263523 未加载
graycat超过 1 年前
Very nice. Thanks.<p>Typing and Text Editors? My favorite text editor is my most important application program, and nearly all of my work is typing into that editor. Soooo, I agree that typing and text editors are important tools, approaches.<p>And I&#x27;m a TeX user: For any important writing, in math or not, I use TeX. Never tried LaTeX.<p>The text editor I use is KEdit, and for it I have lots of macros and write more continually.<p>VIM looks more advanced than KEdit!<p>For drawing of simple figures, I use the old Microsoft PhotoDraw -- you seem to have something more recent and better. Good!<p>Thanks!
评论 #39262446 未加载
supertofu超过 1 年前
I can&#x27;t retain information unless I write it by hand. It&#x27;s a superstition created by my own mind, but it feels like knowledge can leak out of my brain unless I write it out.<p>That said, I use a stylus and digital tablet to take handwritten notes, which allows for sooo much flexibility, editability, and creativity.
polpo超过 1 年前
I did this in college in the late 90s&#x2F;early 00s. It was fun and I could keep up but ultimately it was a dumb flex and I didn’t retain the info any better. I’m glad I stopped. I still did my homework exercises in LaTeX but that was sort of an ADHD-driven yak shaving&#x2F;procrastination exercise.
lugao超过 1 年前
Awesome write-up! I wonder how much simpler and&#x2F;or unnecessary some of the snippets would be by using typst.app instead of latex. The figure creation pipeline is also great, in this case a custom plugin for typst would need to be added to inkscape.
DrNosferatu超过 1 年前
The bullseye would be low error conversion of handwritten math notes to LaTex.
评论 #39261424 未加载
mike986超过 1 年前
if you use emacs:<p><a href="https:&#x2F;&#x2F;karthinks.com&#x2F;software&#x2F;latex-input-for-impatient-scholars&#x2F;" rel="nofollow">https:&#x2F;&#x2F;karthinks.com&#x2F;software&#x2F;latex-input-for-impatient-sch...</a>
kanzure超过 1 年前
this can now be accomplished by vaguely describing the math to chatgpt (or your LLM of choice) in real-time, even if you describe it poorly. You can even take surprisingly bad short-hand notes and convert into good transcripts.<p>For example, this comment was written by asking it to guess: ths cn nw b accmplsh b vague descri da math to chatgpt (or ur llm o choice) in reltym, even if u dscrb porly. u ca eve tk urpringly bd shrthnad nts n cnvrt nto gd trnscrpts.
评论 #39261999 未加载
gtsnexp超过 1 年前
Is there an Emacs port for this?
评论 #39261941 未加载
评论 #39261164 未加载
评论 #39261475 未加载
评论 #39261830 未加载