News for hackers. Stuff that matters.
Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @01:47PM (#28990874)
I am certainly guilty of this problem. I've pretty much hated MS Word for about 10 years now, more or less since I started being an engineer for a living. I hated its equation editor, I hated how the documents ended up looking, I hated the damn spacing between the letters, every time I used it I always felt like my documents ended up looking like ransom letters.

I discovered LaTeX + Pandoc, and it created documents that I thought looked much nicer, and I could use trusty Vim to work with it, so it felt perfect, and I subsequently made fun of people who insisted on using Word. After about two years of doing this, my dad eventually snapped back saying "Tom, we're all really sorry we didn't become software engineers, I guess we'll all quit our jobs and go back to college," which (rightly) made me feel like an asshole.

Obviously this stuff was easy to me, I live and breath in text editors and in plain text, but I had to realize that not everyone is trying to create publisher-worthy documents. They want a document that looks good enough to share with some coworkers, or print out for a school report, and for that MS Word will work fine for most use cases. They don't really want to sit there and learn the minutia of how to compile with `pdflatex` and dissect its weird error messages. They didn't really feel the need to finagle with begin and end tags, and that's totally fine, people should use the right tool for the right job.

After that I would still recommend LaTeX (particularly if the document required equations), but I became substantially less pushy about it.

Re:I don’t know how to count that low by prpl on Monday October 25, 2021 @02:34PM (#28991436)
A nobel prize winner in physics, who I had an office across the hall from, once asked me ~10 years ago if I knew how to write ħ in Microsoft word.

Unfortunately, I did not, and I was unable to help him. I was glad he asked me though. I probably should have tried what I just did though, google it, and copy+paste.

Re:I don’t know how to count that low by codetrotter on Monday October 25, 2021 @04:09PM (#28992516)
On my desktop computer that runs Linux, and where I mostly type code and write in English, I use US English as the input and a Dvorak-based layout in hardware that I made for my programmable keyboard.

Since I very rarely type in my native tongue on that computer, and I annoyingly frequently have had to reinstall the OS from scratch, I no longer bother with customizing xmodmap or similar things on that computer.

So the few times when I have to type æ, ø or å on that computer, I just Google aelig, oslash or aring respectively and I go to the Wikipedia article about the letter or some other page from the results that has the letter on it and copy it from there.

Works well enough given how rarely I type any of those letters on that computer.

Re:I don’t know how to count that low by fao_ on Monday October 25, 2021 @05:11PM (#28993182)
With the Compose Key, which is a feature of all linux distributions:

compose + a + e = æ

compose + o + / = ø

compose + a + o = å

https://en.wikipedia.org/wiki/Compose_key

Something I find absolutely criminal is that this hasn't taken off in a broader sense, and that most users memorize the unicode terms for characters like ©, rather than just typing a simple, eminently memorable sequence like (compose + o + c)

Re:I don’t know how to count that low by sudobash1 on Monday October 25, 2021 @05:54PM (#28993616)
Vim uses something similar to this which it calls digraphs (see :help digraph). http://vimdoc.sourceforge.net/htmldoc/digraph.html

Ctrl+k a e = æ

Re:I don’t know how to count that low by randlet on Monday October 25, 2021 @07:40PM (#28994630)
TIL. Thanks. I love how I keep learning new things about vim after years of daily usage.
Re:I don’t know how to count that low by sundarurfriend on Wednesday October 27, 2021 @04:46AM (#29010875)
You can also add your own digraphs. I've used this to make entering emojis easier, for eg.

    execute 'digraph :) 128578'
so that Ctrl-K :) in insert mode inserts . (`execute 'digraph :\| 128528'` => , `execute 'digraph /\ 128591' ` => , etc.) Edit: I guess HN strips emojis from comments? Just try these and find out which ones they are, I guess!

This was before I knew that the Julia plugin allows emoji entry too (\:<Tab>), but I still find this more convenient for the common ones because the names of emoji are all over the place.

Re:I don’t know how to count that low by Moru on Monday October 25, 2021 @05:45PM (#28993532)
Yes, I was so sad when I "upgraded" from Atari to Windows and I could no longer do this. That it's still not standard is a mystery.

It wasn't standard on Atari either but that it even was a thing 30 odd years ago shows yet again that we're not always as innovative as we think.

Re:I don’t know how to count that low by __d on Monday October 25, 2021 @06:51PM (#28994175)
You might find http://wincompose.info/ helpful: it adds this functionality to Windows.
Re:I don’t know how to count that low by Moru on Tuesday October 26, 2021 @01:28AM (#28996718)
Thankyou! I wonder if there is some patent stopping this from being included in windows by default...
Re:I don’t know how to count that low by hackmiester on Monday October 25, 2021 @07:05PM (#28994303)
Microsoft Word does have compose, sort of(?). control+apostrophe followed by e results in é, for instance. I have no idea why it isn’t OS wide. It works some other places, but not all.
Re:I don’t know how to count that low by _carbyau_ on Monday October 25, 2021 @10:50PM (#28995874)
Windows most everywhere:

Hold ALT while typing the Extended ASCII number for a character on the numpad (not the row of numbers above the letters) results in that char.

For é: Hold Alt while typing 130 on numpad.

TIL, apparently this can be extended to unicode too.

https://superuser.com/questions/1024948/windows-10-alt-code-...

Re:I don’t know how to count that low by Moru on Tuesday October 26, 2021 @01:23AM (#28996694)
Yes, but learning numbers isn't realy comparable to be able to just guess the compose buttons. o¨ makes ö, ao makes å. If you want the copyright sign you type o+c.
Re:I don’t know how to count that low by _carbyau_ on Tuesday October 26, 2021 @07:46PM (#29007907)
True. Different compromises on capability vs usability.
Re:I don’t know how to count that low by tomxor on Monday October 25, 2021 @08:16PM (#28994940)
Relevant excerpt for those wondering what "every Linux distro" means more specifically (xorg):

> On Xorg the default Compose Key is ⇧ Shift+AltGr [...] The X keyboard driver does not allow the key used for Compose to also function as a modifier.

Which might explain why my altgr doesn't seem to work when I try it since it's mapped to mod in i3.

Re:I don’t know how to count that low by fao_ on Tuesday October 26, 2021 @07:29AM (#28998997)
Wayland uses XKB, as does everything else under the sun. XKB is the layer that implements the Compose Key (Actually, you need to configure it via XKB because other methods like ibus do not bother reading ~/.XCompose which allows you to set your own custom compose sequences)
Re:I don’t know how to count that low by mkl on Monday October 25, 2021 @05:42PM (#28993498)
A feature of only some keyboard layouts though? Ordinary US layout doesn't seem to have a compose key mapped by default.
Re:I don’t know how to count that low by fao_ on Tuesday October 26, 2021 @07:27AM (#28998980)
It takes two seconds to map using Gnome Tweaks or something else (Usually XModMap). I map it to right alt which is usually AltGr and not used anyway, and it performs superior to AltGr
Re:I don’t know how to count that low by CRConrad on Wednesday October 27, 2021 @06:34AM (#29011421)
Works for Anglophones. For the rest of us, who have some keys on the right (near the Enter key) occupied by Å, Ä, Ö or similar, we need Alt-Gr to get curly and square brackets, backslash, etc.
Re:I don’t know how to count that low by CRConrad on Monday October 25, 2021 @06:56PM (#28994220)
I was thinking they meant "in Emacs" or "on a Macintosh" or something.
Re:I don’t know how to count that low by nitrogen on Monday October 25, 2021 @05:10PM (#28993174)
It's also worth giving your platform's character map a try if you haven't already. All the major desktop environments have one -- KDE, Gnome, Windows, macOS. Sometimes searching online is still faster, sometimes the character map app is faster.
Re:I don’t know how to count that low by kbenson on Monday October 25, 2021 @10:24PM (#28995717)
> Since I very rarely type in my native tongue on that computer, and I annoyingly frequently have had to reinstall the OS from scratch, I no longer bother with customizing xmodmap or similar things on that computer.

A backup of your home fir, (or at least all dotfiles in it), etcd running on /etc (or $HOME too), and a list of packages that were installed might go a long way towards making setup after reinstall fairly trivial, and you might no longer feel like some customizations aren't worth it.

Re:I don’t know how to count that low by hxtk on Monday October 25, 2021 @10:58PM (#28995919)
Another useful feature is some part of my environment (I've used it in Gnome 3 on both Fedora and Arch, but it doesn't work in RHEL; I'm honestly not sure what part of my stack is providing the feature) lets me pres Ctrl+Shift+U and enter arbitrary unicode. I've memorized the hexadecimal representation for a few common symbols and can enter them into basically any text field.
Re:I don’t know how to count that low by MrDOS on Wednesday October 27, 2021 @07:32PM (#29020418)
> I'm honestly not sure what part of my stack is providing the feature

It's Gtk. Gtk applications on Windows and macOS also use the same keybind to enter characters by Unicode code point. (It's kind of a pain if you use a lot of cross-platform applications, because you end up having to think a bit about what GUI toolkit the application is using before you can type a special character. “Does this one do the native thing or something else?”)

Re:I don’t know how to count that low by Seredo on Monday October 25, 2021 @04:50PM (#28992950)
You could use US Intl. keyboard layout and use RAlt+z/l/w for æ/ø/å. If you have a QMK Firmware keyboard you could even reprogram it to use Alt + '/;/[ to send these keys and you'll have æ/ø/å in the usual position.
Re:I don’t know how to count that low by htns on Monday October 25, 2021 @05:31PM (#28993394)
I'm almost in the same boat, though I use emacs' language-specific input methods for longer texts. The postfix input methods especially work great with Dvorak.
Re:I don’t know how to count that low by djokkataja on Monday October 25, 2021 @05:06PM (#28993142)
> and I annoyingly frequently have had to reinstall the OS from scratch

Is there a story behind that?

Re:I don’t know how to count that low by codetrotter on Monday October 25, 2021 @05:59PM (#28993661)
One of the reasons is that the computer in question has a problem where suddenly everything completely freezes, and I have to forcibly reboot the computer with the hardware reset button. And sometimes after rebooting I find that files on the file system have become corrupted.

Sometimes the machine will run for days without freezing up. Sometimes it can freeze up after just a couple of hours.

Sometimes I am browsing the web when it happens. Sometimes I am writing code and compiling stuff when it happens.

I think the longest uptime I have had on it after the problem started without it freezing has been maybe 8 days. It’s been like this for a long while. A couple of years at least.

And when it freezes it’s not just the UI. It even stops responding to ping.

A few months back someone suggested that it may be due to a faulty PSU. But even after changing the PSU to a new one, it still happens.

And it’s been happening both with different Linux distros and with FreeBSD.

My hardware is:

- MSI B350 Tomahawk motherboard

- AMD Ryzen 7 1700 CPU

- MSI GeForce GTX 1060 6GB graphics card

- Crucial DDR4 2133Mhz 32GB ECC (2x16GB) CT2K16G4WFD8213 RAM

I bought those components in March of 2018, according to the order history in my account on the store where I bought it.

I don’t remember if I ever did run a memory test, but I will do so again anyways soon because I am suspecting that faulty RAM may be the reason. It just takes a long time to run a memory test on 32 GB of RAM and so whenever I think about needing to run it I don’t have time to do so at that moment. But as I am typing this I realize that I’ve got to go ahead and actually find time for running it soon.

Another couple of ideas I’ve had is that maybe the graphics card or the nvidia drivers are to blame. Or that I may have damaged some component with static electricity at some point. Or maybe it’s a thermal issue.

I most recently did a fresh install earlier today, and at the same time I switched out the SSD that was in it for another one. As far as I can remember though, I think I was having this kind of problem even before I was using the SSD that I switched out today. But I am not sure about that. So it could be that the SSD was the problem. But it may be a few days until it freezes again if it’s not the reason. Or it could happen in some hours.

I’ve also tried to look for clues in /var/log/syslog but haven’t really known what to look for specifically. And since even pinging the machine stops working when it freezes I am not sure the system would even be able to write to any logs at the moment that it freezes, since it seems that at that point pretty much everything has stopped working.

Currently I am running tail -F /var/log/syslog in a terminal in the hopes of either seeing something relevant frozen on screen, or in the surrounding output when I reboot the machine since I will then know which line of output I should begin looking in the vicinity of.

But yeah, a memory test is the next thing I plan to do after that.

Re:I don’t know how to count that low by bilange on Tuesday October 26, 2021 @07:15AM (#28998883)
I *had* to get myself out of lurking mode to reply specifically to you; this issue seems widespread for 1st-gens Ryzen. I see your chipset also is close enough to mine (X370), and I felt a strong "déjà vu" by reading your freezing symptoms.

I reused my now old X370 Ryzen build to run TrueNAS Scale (Based on Debian), and have hard lockups like yours.

My personal notes on the subject seems to stabilize things a bit but not completely, and it's a mixture of BIOS Settings Tweaks and Kernel boot parameters that seems to help partially. Things I tried/applied with varying degree of success:

- Disabling Cool&Quiet

- Disabling C-States

- Gear Down Mode: Disabled

- Power Down Mode: Disabled

- VDDSCR_SOC: Offset by +0.00625v (seemed to stabilize things on Windows)

- Someone in the kernel bugreport mentionned the need to power off (as opposed to just reset) so all the BIOS Settings are applied correctly (didn't try it myself yet)

See those links for more infos:

- https://bugzilla.kernel.org/show_bug.cgi?id=196683 (a very long bugreport thread, people commented lots of things they tried to stabilize their build along with kernel parameters ideas)

- https://gist.github.com/diracs-delta/876d74d030f80dc899fc58a...

- https://web.archive.org/web/20201020144021/https://www.truen... (linked from Archive.org as TrueNAS WAS specifically mentionning Ryzen stability in the first paragraphs of this page)

Good luck; and if you ever found how to get rid completely of those freezes, let me know :)

(edit: formatting)

Re:I don’t know how to count that low by codetrotter on Tuesday October 26, 2021 @12:28PM (#29002423)
Thank you for emerging from lurk mode for me :) I will try those things.
Re:I don’t know how to count that low by codetrotter on Tuesday October 26, 2021 @01:35PM (#29003411)
I found some of the settings but not all of them, but here’s the ones I found, and changed now:

- Global C-state Control: Auto -> Disabled

- AMD Cool’n’Quiet: Auto -> Disabled

- CPU NB/SoC Voltage: Auto -> Offset Mode; CPU NB/SoC Offset Mode Mark: +; CPU NB/SoC Offset Voltage: Auto

(The offset value can only be auto with my machine, not a custom value it seems.)

Only ones I couldn’t find were Gear Down Mode and Power Down Mode.

Clicked save and exit in the UEFI.

Then I powered down the machine and even flipped the on-off button of the PSU to off and let it stay off for ~20 seconds for good measure. Then turned the PSU back on and then powered the machine back on.

Currently reading the bug report thread and will try some of those things as well.

Re:I don’t know how to count that low by codetrotter on Tuesday October 26, 2021 @02:17PM (#29004079)
Now I've read a bit of those links and also read a bit of the following other links:

- https://utcc.utoronto.ca/~cks/space/blog/linux/KernelRcuNocb...

- https://access.redhat.com/documentation/en-us/red_hat_enterp...

- https://help.ubuntu.com/community/Grub2/Setup

And I've changed the following line in my /etc/default/grub from:

    GRUB_CMDLINE_LINUX=""
to

    GRUB_CMDLINE_LINUX="rcu_nocbs=0-15 processor.max_cstate=5"
since my CPU has 16 threads. And I've saved it and have run

    sudo update-grub
Now I'm about to reboot the computer and then hopefully it will be more stable from now on :)

Thanks again for the help bilange.

Re:I don’t know how to count that low by codetrotter on Tuesday October 26, 2021 @02:36PM (#29004378)
Having now turned the computer back on I've also confirmed that these flags are indeed now being passed to the kernel when it is booted, as seen in the output of

    cat /proc/cmdline
which shows the following:

    BOOT_IMAGE=/boot/vmlinuz-5.11.0-38-generic root=UUID=4dcba509-efff-4ccc-a099-f919240c767c ro rcu_nocbs=0-15 processor.max_cstate=5 quiet splash vt.handoff=7
And that's the "rcu_nocbs=0-15 processor.max_cstate=5" we added to our GRUB2 config shown right inside of there.
Re:I don’t know how to count that low by djokkataja on Tuesday October 26, 2021 @03:42AM (#28997490)
> It just takes a long time to run a memory test on 32 GB of RAM

Maybe run memtest while you sleep? :)

> Or maybe it’s a thermal issue.

I'm no expert on thermal issues by any means, but I did have a laptop that overheated frequently in the past. It was very easy to identify that it was a heat problem, because the fans would start screaming and then it would reliably overheat and power itself off anytime I tried to do anything CPU-intensive with it. Sticking it in a freezer "solved" the problem.

Anyway, given that your freezes are completely random, it doesn't sound like a thermal issue?

Re:I don’t know how to count that low by codetrotter on Tuesday October 26, 2021 @04:34AM (#28997855)
> Maybe run memtest while you sleep? :)

Yup, did that tonight. The test is finished now and it found zero errors. The test took 7 hours and 56 minutes to run. I used a bootable USB stick with MemTest86 v9.3 Free to test it.

Re:I don’t know how to count that low by d_tr on Monday October 25, 2021 @10:26PM (#28995730)
Some ideas just in case...

- Even if the RAM modules are not faulty, ECC is not officially supported by your CPU and motherboard, right? So this could be a problem... They might also not be correctly configured, so check the UEFI settings.

- Regarding the GPU, you could try lowering your PCIe mode to a slower one, especially if you are using a riser cable.

- I have had overly bent SATA cables cause complete freezes every few hours on a brand new PC. I luckily got the hint quickly because the HDD LED was staying lit.

- What about the quality of the power going into your PSU?

- Have you tried rebooting more gracefully with the SysRq commands?

Re:I don’t know how to count that low by codetrotter on Tuesday October 26, 2021 @04:44AM (#28997909)
> Even if the RAM modules are not faulty, ECC is not officially supported by your CPU and motherboard, right?

Correct.

> So this could be a problem... They might also not be correctly configured, so check the UEFI settings.

Most of the settings in UEFI that I can find about RAM are related to overclocking, and I am not using those features.

But it may well be as you say that using ECC RAM with a non-ECC motherboard could cause problems.

> I have had overly bent SATA cables cause complete freezes every few hours on a brand new PC. I luckily got the hint quickly because the HDD LED was staying lit.

My SATA cables are cheap ones I bought off of eBay. I may try and replace them.

> What about the quality of the power going into your PSU?

The freezing has happened in all of the different places I have lived during this time, so I don’t so. Unless the power cord could be doing something, but the power cord looks fine on the outside at least.

> Have you tried rebooting more gracefully with the SysRq commands?

Going to try that in the future.

Thank you.

Re:I don’t know how to count that low by codetrotter on Tuesday October 26, 2021 @02:51PM (#29004603)
> > Even if the RAM modules are not faulty, ECC is not officially supported by your CPU and motherboard, right?

> Correct.

I should also add to this for the record, that my mistake here was that when I bought the system, I checked to see that Ryzen 7 1700 supports ECC RAM, but that I was unaware that the motherboard also needed to support it in order for ECC to work.

Someone in a sibling comment pointed me to some links and gave me some info about some UEFI settings to try along with some kernel boot arguments and I've applied these. Hopefully it will be enough to take care of the issue, or at least to improve the stability a bit. But if the system continues to be unstable then I will probably try and save up a bit of money to replace the RAM that I have with non-ECC RAM instead, or alternatively that I save up money for a new motherboard which supports both ECC RAM and my current CPU as well as being able to host a newer generation of Ryzen CPU that I can then buy further into the future.

Also, I went to an electronics store today after reading your comment and bought a new SATA cable that I now use instead of the one that I had.

Re:I don’t know how to count that low by zitterbewegung on Monday October 25, 2021 @05:47PM (#28993557)
A Turing award winner needed help during a computational complexity Confrence (technically it was Karps birthday a day before the Confrence started). It was Donald Knuth and I figured out that changing pdf viewers fixed the problem of auto forwarding (instead of acrobat I used preview.app). He also wrote TeX.

Video here https://youtu.be/pP2D4DEQBTU?t=146

Re:I don’t know how to count that low by layer8 on Monday October 25, 2021 @08:23PM (#28994988)
You typed U+0127, but he probably meant U+210F. Anyway, the answer is to either go the Insert > Symbol route or to type 210F in Word and then press Alt+X, which works since Office XP (released in 2001). Maybe this wasn’t as googlable 10 years ago. An arguably better way nowadays is to install WinCompose.
Re:I don’t know how to count that low by prpl on Tuesday October 26, 2021 @12:26AM (#28996394)
You are totally right.

We both knew it was \hbar in latex but could not figure out how to get there on Windows. He was collaborating with somebody on a paper and was not used to having to do so with windows/word (he had a RHEL 5 desktop).

He was also 83.

Re:I don’t know how to count that low by Traubenfuchs on Monday October 25, 2021 @06:10PM (#28993783)
You always have the trusty character map application available on Windows!

Great to find characters you don‘t even know the name of.

Re:I don’t know how to count that low by marcosdumay on Monday October 25, 2021 @02:11PM (#28991173)
Yet everybody seems to have the time and inclination to manage list numbering in Word, that doesn't work at all, does not allow direct manipulation, and has all the relevant information hidden. It's just that people don't mind losing months of productivity in a couple of years if it means saving a couple of full days of learning. (A few times this even is the correct choice...)

Anyway, I'll keep pushing for Libre Office. Word is a complete bullshit of a tool. If people's work involves numbering every odd paragraph into a list, they are probably better with LaTeX, but they won't learn it anyway. Yet, Writer simply works.

Re:I don’t know how to count that low by KronisLV on Monday October 25, 2021 @03:02PM (#28991738)
> Yet, Writer simply works.

Except that today i literally ran into the problem of Writer crashing whenever an image in the page was resized. There was a table that was spanning multiple pages and my dad was attempting to add pictures to it, along with small text comments below each picture. And, without fail, that particular document crashed whenever you'd use the drag tool to attempt to resize the picture, so that instead of overflowing into a new page, it'd fit within the current one.

Now, i didn't have the time to debug further (Windows 10, Writer 7), but one cannot say that Writer is bulletproof either, even if it's perhaps one of the very few office suites out there that are probably worthy of most people's time and present a usable alternative to the proprietary .docx and other file formats.

Honestly, at this point i'm convinced that Writer is okay for when you absolutely need a more advanced text processor, but for every other sort of note, shorter pieces of writing etc., Markdown is more than enough. Now i mostly just reach for Visual Studio Code, Notepad++ or even just nano when i want to take notes, write some fiction or anything of the sort.

Plus, i can currently combine all of the notes from my driver's ed by simply concatenating the .md files, as well as searching becomes infinitely more easy when compared to binary file formats and such.

Edit: Also, if we're talking about annoying cases of LibreOffice breaking, here's an example of references (bibliography) failing to work when i had to hand in my Master's thesis: https://blog.kronis.dev/everything%20is%20broken/libreoffice... (the tone expresses my frustration at that time)

Re:I don’t know how to count that low by marcosdumay on Monday October 25, 2021 @03:18PM (#28991920)
> but for every other sort of note, shorter pieces of writing etc., Markdown is more than enough

Oh, yeah, not go adding formating that one doesn't need is a great way to avoid a lot of pain.

Markdown if more than enough for nearly all the writing people do. (But it's not enough for all the writing that most people do.)

Re:I don’t know how to count that low by Thrymr on Monday October 25, 2021 @03:24PM (#28991984)
> Word is a complete bullshit of a tool.

Maybe true, but Libre Office is not really any better, just free and open source. It's also nowhere near as familiar and well supported, and that's worth a lot.

Re:I don’t know how to count that low by sethammons on Monday October 25, 2021 @02:59PM (#28991695)
more people are probably hit by the list managing mess, but the one that got me recently was a blue line of some sort. Some margin or page break or something. My attorney asked if I could help him remove the blue line from the middle of the page he was typing out on a contract we were working on. For the life of me, I was unable to remove the blue line in <10min of effort. I had to say sorry, talk to your tech guy.
Re:I don’t know how to count that low by plank on Monday October 25, 2021 @03:44PM (#28992200)
My solution for these problems (kind of like turn off/turn on): Create a new word document, and copy-paste stuff in front and stuff after to the new document. Sometimes this works when normal editing doesn’t.
Re:I don’t know how to count that low by Moru on Monday October 25, 2021 @05:54PM (#28993613)
Our solution to anything like this has always been copy to notepad and back again. Old people knows exactly what is meant but people 25 and younger usually don't understand why or how. Seems to be a generational thing. Lately even notepad preserves utf8 so the method is starting to break together :)
Re:I don’t know how to count that low by HPsquared on Monday October 25, 2021 @07:42PM (#28994656)
In Notepad, you can save the file in a simpler character set (save as).
Re:I don’t know how to count that low by maxerickson on Monday October 25, 2021 @11:00PM (#28995929)
The Show Styles, Style Inspector and Reveal Formatting panes all help with stuff like this. The last one should give a pretty clear hint to where the line is defined.
Re:I don’t know how to count that low by dctoedt on Monday October 25, 2021 @02:09PM (#28991152)
For short, quick-turnaround documents that get exchanged and redlined by multiple non-technical types (e.g., contracts): Microsoft Word, because it's the global standard and the network effect is in full force.

For books and similar long docs: Definitely LaTeX (preferably with Emacs org-mode), because Word has a way of f[oul]ing up automatic cross-references even in short documents; pandoc can then turn the LaTeX into whatever other format you want.

Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @02:19PM (#28991271)
> For short, quick-turnaround documents that get exchanged and redlined by multiple non-technical types (e.g., contracts): Microsoft Word, because it's the global standard and the network effect is in full force.

I agree for most people, though I feel like I'm pretty quick with Markdown + Pandoc -> LaTeX.

Definitely agree with the citations stuff though; Pandoc's BibTeX support is generally good, and I've had substantially fewer headaches with it than trying to get the reference stuff in MSWord to work.

Re:I don’t know how to count that low by TacticalCoder on Monday October 25, 2021 @06:28PM (#28993976)
> For books and similar long docs: ...

I've worked in the book publishing industry and I've typeset books both using QuarkXPress (now everybody moved on to InDesign) and LaTeX. Using Word to typeset a book is a major PITA. Nobody in the professional book publishing industry is using Word to typeset books (well, ok, maybe 0.1% of masochists out there).

Word is convenient to quickly edit crappy looking documents: it's a document editor. It's not a typesetting program.

Re:I don’t know how to count that low by 1-more on Monday October 25, 2021 @03:18PM (#28991917)
> For books and similar long docs

Weirdly enough I know someone with a book published by a big programming book company, and they accept manuscripts in Word only.

Re:I don’t know how to count that low by smogcutter on Monday October 25, 2021 @08:17PM (#28994954)
This is likely unrelated to typesetting: it’s for the track changes feature. The final files that go to the printer are probably not produced by word.
Re:I don’t know how to count that low by 1-more on Tuesday October 26, 2021 @09:47AM (#29000320)
Oh yeah that's for sure. And since they have a house style for everything it'd be a bit silly to faff about making your \lstset look just so when the printer would need to re-set (reset?) all of it.
Re:I don’t know how to count that low by akvadrako on Monday October 25, 2021 @02:36PM (#28991453)
I think even for casual users LyX (a LaTeX editor) is better than Word for documents with simple layouts or many equations.

Word is really complicated to understand and often makes formatting more difficult than it needs to be. So this doesn't seem like an elitist thing.

Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @02:43PM (#28991517)
Sure, but even if you're technically right, for Word there's a million tutorials and YouTube videos if you get stuck, not to mention that basically every office seems to have "that MS Office person" who seemingly knows every single trick imaginable in Word. Even if Word is more complicated, it's relatively cheap and easy to unblock yourself. I've not used LyX, but I suspect that it doesn't have nearly the same level of domain knowledge in the corporate world, artificially making it harder to learn.

Is that fair? No, not at all, but that just seems to be how it is.

Re:I don’t know how to count that low by Thrymr on Monday October 25, 2021 @03:27PM (#28992024)
> I think even for casual users LyX (a LaTeX editor) is better than Word for documents with simple layouts or many equations.

That really depends on what you mean by "casual users". It's a lot of overhead for someone who isn't familiar with LaTeX already. I've tried showing this to students, and it's a much heavier lift than MS equation editor for limited tasks. Of course for professional typesetting or many complex equations LyX will win, but truly "casual" use it isn't close IMO.

Re:I don’t know how to count that low by akvadrako on Monday October 25, 2021 @04:03PM (#28992433)
Well in college I only used LyX and I never knew LaTeX and I never found it easier to learn Word's equation editor.
Re:I don’t know how to count that low by netizen-936824 on Monday October 25, 2021 @04:33PM (#28992777)
When I first got into LaTeX I tried LyX. Horrible, clunky experience. I never recommend it to anyone, instead I recommend just using VSCodium and associated plugins, its a far smoother experience
Re:I don’t know how to count that low by analog31 on Monday October 25, 2021 @02:01PM (#28991050)
The word users may think they're more productive. And they might be right. I strategically avoid that question because I don't want it to drive my choice of tools.
Re:I don’t know how to count that low by lostlogin on Monday October 25, 2021 @02:04PM (#28991082)
> I've pretty much hated MS Word

Do you mean the app, the web or the Teams version? Or is it the way each allows different things, blocks certain actions or displays differently?

It is incredible that this mess is the industry standard.

Re:I don’t know how to count that low by dhosek on Monday October 25, 2021 @02:16PM (#28991240)
The thing is, the vast majority of written communications are just fine in Word. And Word is a lot easier to integrate into other workflows than is LaTeX (and this is from someone who's finishing a book on using LaTeX right now). There are plenty of times that I wish for the kind of control that I have in LaTeX when using other platforms, but for just plain writing, I have to confess that Word is far more ergonomic and I haven't opened a LaTeX document to write fiction in for more than twenty years.
Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @02:21PM (#28991285)
How do you feel about Markdown? It sometimes has issues, but generally speaking I feel like Markdown converted to LaTeX looks pretty good, and I think that Markdown is usually fairly pleasant to work with.
Re:I don’t know how to count that low by Arainach on Monday October 25, 2021 @02:54PM (#28991646)
Markdown is designed to be simple and minimalist. It works well for the specific set of things it is designed to do, but once you need anything else - images, headers/footers, color, page numbers, and so on - it collapses entirely.
Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @03:02PM (#28991743)
> Markdown is designed to be simple and minimalist.

Fair enough.

> It works well for the specific set of things it is designed to do, but once you need anything else - images,

It's never been particularly hard for me to add images in markdown when rendering with Pandoc. It's fairly easy to add images and adjust their size and whatnot, not 100% what you're referring to.

> headers/footers,

Yeah, I'll give you that one, you gotta muck with the preamble YAML in pandoc to get headers, and that's some irritating LaTeX.

> Color

Also fair, not sure it's possible to have color in Markdown->PDF with Pandoc.

> page numbers,

Page numbers are output by default in Pandoc with Markdown. You can also add an optional Table of Contents if needed. Not sure where that rumor started.

Re:I don’t know how to count that low by grayclhn on Monday October 25, 2021 @06:09PM (#28993764)
Often you want page numbers so that you can refer to them later in the text (“See Figure 1 on page n.”) I think at one point I knew how to do that in markdown but IIRC it was only an option in pandoc, and 2) it only worked by printing to pdf via LaTeX, and 3) I may have needed to implement it in LaTeX anyway.

“Pandoc lets you achieve X by embedding latex in your markdown file” is a lot different than “markdown supports X”

Re:I don’t know how to count that low by dhosek on Tuesday October 26, 2021 @04:13PM (#29005685)
Page references are an interesting case because they’re very print-dependent. A I've been working on finl, I've thought about the fact that page references don't work well for documents which might be presented electronically.¹ A reference like “on page 32” doesn’t translate to say HTML or ePub. At one point, while I was reading the Rust book, I was excited to see how a page reference was translated into the online version. I quickly went there and they rewrote that sentence to eliminate the page ref.

The other challenge with page references is that they’re at least in theory, a potential source for a loop condition in rendering. We can have a reference to “on page xcix” which will cause the referred to element to move to page c, but then when the output is changed to “on page c” the element moves back to page xcix.²

⸻⸻⸻

1. PDF in a way doesn't count as electronic presentation in that it’s inherently an electronic representation of a print product, things like PDF reflowing notwithstanding.

2. I suspect, but can’t prove, that in LaTeX, this could even happen if a page reference becomes longer, thanks to how LaTeX’s line breaking algorithm works on a paragraph at a whole. When I get to that part of finl, I guess I’ll know for sure whether this is possible, and if so, will work out how to avoid it.

Re:I don’t know how to count that low by dhosek on Tuesday October 26, 2021 @04:16PM (#29005712)
It’s nice for small-context stuff, but it depends on the editor context as well. Hitting cmd-I to turn italics on and off is no more difficult than typing * at the beginning and the end. And then there’s the fact that the verbatim equivalent doesn't provide a way to be able to easily have ` as an in-line verbatim. Word is nice because it’s designed for writing which most text editors are not.
Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @02:15PM (#28991223)
I was referring to the app, whatever was recent in 2011 or so. 2007 I think? I haven't used it in a long time.

I always wanted my documents (and particularly equations) to look as nice as the formatting in my textbooks, and it felt like no matter how much finagling I did (which was not an insignificant amount of time being spent), it never looked quite as good.

Also, I never fully knew what copy-paste was actually going to do. Was it going to copy the source formatting? Was it going to adopt the style of where I was pasting? Was it going to do neither and just break everything? I was never sure, so I always ended up pasting into Notepad and then re-copying it to guarantee all the formatting was stripped out.

And sometimes there would be just a vanilla "I pressed a random keystroke by accident, all the formatting broke, and undo doesn't appear to do anything" issues. This might just be gross incompetence on my end (it wouldn't be the first time) but nearly everyone I've described this issue to has experienced similar problems.

Also, I can't remember the details of it, and it's possibly fixed now, but I had issues with the equation editor simply not having all the symbols I needed.

In fairness, I have similar complaints about most of the other WYSIWYG word processors, so I don't mean to pick on MS Word specifically (most of these complaints apply to Pages and LibreOffice as well).

Re:I don’t know how to count that low by lostlogin on Monday October 25, 2021 @02:44PM (#28991532)
> I never fully knew what copy-paste was actually going to do.

On a Mac, Option+Shift+Command+V is paste without style.

I can’t understand why this wasn’t the default (or when Command+V is pressed).

Edit: > I was referring to the app, whatever was recent in 2011 or so. 2007 I think? I haven't used it in a long time.

I was raging at my world. Things have got much, much worse in the MS Office world. Going back to it after a long absence had me baffled. It’s all online now, except when it isn’t, or when it sort of isn’t and it does not work well.

Re:I don’t know how to count that low by II2II on Monday October 25, 2021 @07:29PM (#28994529)
> On a Mac, Option+Shift+Command+V is paste without style.

On Windows, it used to be Control-Shift-V. Unfortunately, it does not work in Office 2016 (and likely other recent versions). While the new approach is more flexible, it would have been nice if they kept the old behaviour bound to the old key combination.

I agree with recent versions of Office being a baffling mess. The only reason why I keep Office 2016 around is for the rare case that I need to send an editable document to someone else and I have no intent to upgrade since figuring out that mess is more trouble than it's worth.

Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @02:48PM (#28991584)
I was on Windows at the time. I'm sure there's an equivalent in Windows but I never learned it, presumably because I was too lazy.
Re:I don’t know how to count that low by frosted-flakes on Monday October 25, 2021 @03:17PM (#28991903)
In Word, if you paste something, it will show a little tooltip menu beside the pasted content that allows you to change if it keeps source formatting, adopts destination formatting, or has no formatting.
Re:I don’t know how to count that low by coldtea on Monday October 25, 2021 @05:43PM (#28993510)
>but I had to realize that not everyone is trying to create publisher-worthy documents

Not to mention most LaTeX documents look like crap - the might get the "standard LaTeX paper-like formatting" but as a formatting it's nothing special to write home about, and the fonts don't look particularly good either.

What I find especially funny, is there was a foreign commercial book from LaTex experts (and contributors), about LaTex, typeset in LaTex (of course), whose typesetting was all over the place -- including text running off the page inadvertently.

Re:I don’t know how to count that low by wpietri on Monday October 25, 2021 @06:01PM (#28993674)
Like you, I've never liked it. TeX has always struck me as more focused on the needs of a narrow set of TeX users, not the readers. And Bob Cringely tells a story about Knuth and the invention of TeX:

"""

It was a major advance, and in the introduction he proudly claimed that the printing once again looked just as good as the hot type of volume 1.

Except it didn’t.

Reading his introduction to volume 3,1 had the feeling that Knuth was wearing the emperor’s new clothes. Squinting closely at the type in volume 3, I saw the letters had that telltale look of a low-resolution laser printer—not the beautiful, smooth curves of real type or even of a photo typesetter. There were “jaggies”— little bumps that make all the difference between good type and bad. Yet here was Knuth, writing the same letters that I was reading, and claiming that they were beautiful.

“Donnie,” I wanted to say. “What are you talking about? Can’t you see the jaggies?”

But he couldn’t. Donald Knuth’s gray matter, far more powerful than mine, was making him look beyond the actual letters and words to the mathematical concepts that underlay them. Had a good enough laser printer been available, the printing would have been beautiful, so that’s what Knuth saw and I didn’t. This effect of mind over what matters is both a strength and a weakness for those, like Knuth, who would break radical new ground with computers.

Unfortunately for printers, most of the rest of the world sees like me. The tyranny of the normal distribution is that we run the world as though it was populated entirely by Bob Cringelys, completely ignoring the Don Knuths among us.

"""

From Accidental Empires. Which you can get as a book, but he uploaded a scan to his blog here: https://www.cringely.com/2013/02/10/accidental-empires-part-...

Re:I don’t know how to count that low by svat on Monday October 25, 2021 @08:36PM (#28995070)
There are a few things wrong with Cringely's story:

- According to this story, TAOCP Volume 1 was typeset using hot-metal printing, Volume 2 was typeset using "photo-offset printing to save money for the publisher" (which Knuth didn't like), and Volume 3 was typeset using TeX. But in reality, the first editions of all three volumes of TAOCP (Vol 1 1968, Vol 2 1969, Vol 3 1973), and the second edition of Volume 1 (1973), were all typeset using hot-metal printing. It was the galley proofs of the second edition of Volume 2 (in preparation around 1977) which used photo-typesetting, but this was never published. Ultimately the second edition of Volume 2 when published in 1981 used digital typesetting (TeX + Metafont).

- He claims that in "volume 3" (let's charitably assume he meant the 1981 second edition of Volume 2, as this is the only thing that makes sense: the next editions of these volumes were from 1997–98, after "Accidental Empires" was published), he "saw the letters had that telltale look of a low-resolution laser printer" and "Had a good enough laser printer been available, the printing would have been beautiful" — but this makes no sense, as these published books were (obviously!) not printed using a low-resolution laser printer, but were printed using a good digital typesetter at 5000+ dpi.

For more history, see https://tex.stackexchange.com/questions/367058/wheres-an-exa...

So either the story is completely made up, or (accounting for lapses in memory etc), Cringely may have meant one of the following:

1. The fonts used in 1981 (Vol 2 2nd edition) were not the final version and were further refined (see Knuth's "burned with disappointment" linked above), leading to the current Computer Modern (BTW: try not to use the thin/spindly on-screen versions: https://tex.stackexchange.com/a/361722) after further consultation with leading type designers,

2. Cringely may have been talking about something like the 1979 book "TeX and METAFONT: New Directions in Typesetting", which is basically a very early application of the prototype TeX78 that was still being developed at the time, and was indeed (I think) typeset on the Xerox Graphic Printer (XGP), and you can indeed easily see the low-resolution artefacts. (They're impossible to miss: if such a conversation as above indeed happened, and about this book or something from that early period, likely what Knuth said was something like "yes of course the type looks bad in this book, but it's been designed for a real (higher-resolution) digital typesetter and it will look fine there", not that he couldn't see it.)

Re:I don’t know how to count that low by wpietri on Tuesday October 26, 2021 @02:09PM (#29003958)
Thanks! I appreciate the further details. For what it's worth, I think of Cringely more as a tech gossip columnist turned memoirist, so I expect it's lapses in memory and being a bit slapdash, plus the difficulty of fact-checking anything in the pre-web era.
Re:I don’t know how to count that low by tombert on Monday October 25, 2021 @05:46PM (#28993550)
I guess there’s no accounting for taste, but I quite like the default LaTeX font, better than most of the fonts I tried in Office.
Re:I don’t know how to count that low by tharkun__ on Monday October 25, 2021 @09:08PM (#28995230)
Amen to what tombert is saying there. LaTeX documents just look "nice" right off the bat and they do formulas perfectly.

I would personally say that it totally depends on what you're trying to do. Most of what corporate types need is done fine with MS Word and like others have said, there's always that "expert" that can get you out of tight spaces. It works well enough for the general public so to speak.

You want something scientific to look the part and not have any of the formatting hassles we all know from Word? Go use LaTex! I wrote both my Bachelor's and Master's thesis in LaTex. Yes, pure TeX is way outdated and even with LaTex you have to look at what the "current" packages are to use for various things (this was 15+ years ago and I have totally never had a reason to use LaTeX again, so I'm not current).

Fun anecdote (at least to me): I did my Master's thesis at a company, so sort of outside of the "scientific environment" where LaTeX would've totally been accepted. The company wanted my thesis as a Word document. I refused. I said I'd give them a Word version as an export afterwards but without any changes to the formatting, no niceties, nothing. Just a plain export, that's it. I was not gonna go through the formatting and editing hell of Word for a thesis, ever! Unlikely hero: my direct 'boss' at the company, who was overseeing the thesis work had written his own thesis like 10 or more years before that in LaTex and he defended me against his boss. Next day he comes to me and proudly tells me he went and grabbed his own Master's thesis from backup, downloaded a current LaTeX and ran it through. Looked as beautiful as ever!

Re:I don’t know how to count that low by wly_cdgr on Monday October 25, 2021 @06:27PM (#28993961)
Why use big Word when small Notepad do trick?
Re:I don’t know how to count that low by glitchc on Monday October 25, 2021 @03:58PM (#28992377)
That Word doesn't work (well) in Linux is a big reason why I still have Windows on my home computers.
Re:I don’t know how to count that low by maxerickson on Monday October 25, 2021 @10:47PM (#28995853)
Did you notice they released a new layout engine for Word sometime in the last ten years?

Did you turn on kerning?

Re:I don’t know how to count that low by TacticalCoder on Monday October 25, 2021 @06:24PM (#28993929)
> "Tom, we're all really sorry we didn't become software engineers, I guess we'll all quit our jobs and go back to college," which (rightly) made me feel like an asshole.

The problem is that MS Word kinda require you to be a software engineer to be able to use it and produce a document which does not look like a ransom letter (and even then, it doesn't look great). Word, just like Excel, are extremely complex and complicated software.

Sure, they can be used in a "simple" manner, but god forbid regular users to select something by mistake then click on the wrong button (among the myriad of buttons around).

> I discovered LaTeX + Pandoc, and it created documents that I thought looked much nicer

About any document editor or typesetting program produces documents that are better looking than Word. It's not a thought.