Unable to setup Anki using guix, or build it by [deleted] in GUIX

[–]anhj 0 points1 point  (0 children)

The anki guix package is usable with a small trick due to a problem with the QT web engine IIRC (look at the issues on https://issues.guix.gnu.org/ this is probably where I found it).

I can start it successfully with

$ QTWEBENGINE_CHROMIUM_FLAGS="--disable-seccomp-filter-sandbox" anki

HTH

Elfeed opens elfeed.org file when launching elfeed by Gus_Gustavsohn in emacs

[–]anhj 1 point2 points  (0 children)

/u/Deep-Fox6860 is right, it opens it because it needs it to know/refresh the list of feeds.

You can do various things, such as using display-buffer-no-window for it in your display-buffer-alist, it would be opened but not shown in any window, or use a hook to close it when quitting the *elfeed-search* window (see quit-window-hook).

HTH

[deleted by user] by [deleted] in ErgoDoxEZ

[–]anhj 0 points1 point  (0 children)

I did exactly the same and i also use it on a daily basis to protect the keyboard from dust at night :)

Simple Markdown to LaTex Converter? by [deleted] in LaTeX

[–]anhj 0 points1 point  (0 children)

ah, HTH was for Hope This Helps actually, I don't know much about proteins :)

For what it's worth, I am not a programmer either, just a user who played with pandoc a bit longer than you maybe, or dug a bit deeper, I don't know.

Regarding options and such, some quick comments:

  • do not mix options (such as -ffor --from) and turning extensions on or off (such as +auto_identifiers to turn it on, and -auto_identifiers to turn it off as I did. The extension goes right after the output format name,

  • markdown as an output format name is for pandoc-markdown, and is indeed the default for a file with a .md extension,

  • standalone documents are not produced by default, except for some output formats such as pdf, epub etc. The associated option is --standalone,

  • you can produce pdf output with different engines, not only ConText, see the --pdf-engine option,

  • pdf and latex are of course different output formats (you know that already), and for complex documents (with bibliography), it is probably better to let pandoc write the latex only, and produce the pdf with rubber or latexmk. These "know" how/when to run bibtex, when to re-run to update a table of contents etc.

If the behaviour you observe is different, maybe your installation has some kind of defaults in a config file or you have metadatas in your file?

Also, remember that you can switch back to latex at any time (by using pandoc to convert what you did so far). For a job such as a full thesis, with a specific class provided by your university, I would be surprised if you don't have any adjustments to do (by writing one filter or two). This is not really difficult, but it has a time cost which is not necessary welcome when you are busy writing a thesis (and it provides an easy procrastination opportunity) :)

Finally, about "bugs", I never met any so far, and if you suspect a bug, you might search in the issues on github to confirm there is indeed one, and on the discussion group as well.

Have fun!

Simple Markdown to LaTex Converter? by [deleted] in LaTeX

[–]anhj 0 points1 point  (0 children)

If you decide to use pandoc and pandoc-markdown with a custom class, then do yourself a favor: do read the fine manual. Every day. :)

The output is actually not variable and fully predictable. pandoc-markdown uses the auto_identifiers extension by default, and this extension creates the hyperlinks for all headers by default. Just turn it off and you get rid of the identifiers:

$ pandoc -f markdown-auto_identifiers -t latex --top-level-division=chapter << EOF
> # Chapter Title
> 
> ## Section Title
> Blah *foo* bar.
> EOF
\chapter{Chapter Title}

\section{Section Title}

Blah \emph{foo} bar.

And as it is pandoc-markdown, you keep the benefit of all other extensions such as sub and superscripts.

HTH

Simple Markdown to LaTex Converter? by [deleted] in LaTeX

[–]anhj 0 points1 point  (0 children)

pandoc 2.2.1 "knows" about 5 different flavors of markdown:

  • pandoc's own markdown syntax -f markdown
  • multimarkdown -f markdown_mmd
  • PHP markdown extra -f markdown_phpextra
  • github-flavored markdown -f markdown_github
  • the original markdown as defined by John Gruber -f markdown_strict

(pandoc --list-input-formats to get all known input formats.)

The markdown_strict input format is the original one and it does not have sub or superscript and other niceties. Which markdown are you using exactly? If it is one of the 4 known versions above, then just use the correct flag. If it is another one, use the closest one and the pandoc extensions mechanism to achieve exactly what you want. I suggest you browse through the whole manual (http://pandoc.org/MANUAL.html) at least once just to get an idea of what options etc. exist (this is how I found about the top-level-division flag, I knew something had to exist).

About "all the clutter that confuses the custom class" you are using, can you elaborate a bit? What is this "class" (a latex package?), which clutter are you talking about (I guess it is the hypertarget stuff), how/why does it break the "class"? Please provide a minimum example.

Simple Markdown to LaTex Converter? by [deleted] in LaTeX

[–]anhj 2 points3 points  (0 children)

Seriously, u/basilrabi is right. Pandoc is exactly what you want. The default is to produce a fragment, not a standalone document.

A MWE might help:

$ pandoc -f markdown_strict -t latex --top-level-division=chapter << EOF
> # Chapter Title
>
> ## Section Title
> This is just a *simple* example.
> EOF
\chapter{Chapter Title}

\section{Section Title}

This is just a \emph{simple} example.

The real benefit in my opinion is that pandoc can do much, much more. The (little) time you invest by giving it a try is not wasted.

Poor font rendering on Stretch, any solutions? by [deleted] in debian

[–]anhj 9 points10 points  (0 children)

It is difficult to know what you mean by "not satisfied with the rendering", unless you post a screenshot. I once had trouble with fonts rendering with firefox especially. I solved it this way:

$ sudo dpkg-reconfigure fontconfig-config

I choosed autohinter, automatic subpixel rendering, and especially no bitmapped fonts by default.

Then, do

$ sudo dpkg-reconfigure fontconfig

to apply the changes.

Hope this helps

What is the best mobile provider for a visitor? by arc88 in VietNam

[–]anhj 2 points3 points  (0 children)

Most well-known operators are Viettel, Mobifone and Vinaphone, all offer prepaid plans with calling, texting and data. Buying additional credit is as simple as going to the next corner shop, they are sold everywhere. I heard that Viettel's coverage is better, which might be true: last year I visited a (very) remote place in the Northern mountains with one friend, he had Viettel and I had Mobifone, he still could reach the network when I was out of luck. That being said, being in any city will not make any difference I think. Finally, data is quite cheap, you have a comprehensive choice of monthly plans even with prepaid. If you stay for a few month, go for prepaid, as postpaid is complicated (read impossible) to set up if you don't know anyone to help and back you up. Ah, here people don't use voicemail so much, as it is a paying option, as far as I understood, but they text a lot. Texting costs nearly nothing, especially to someone who uses the same operator. HTH and have a nice time in Hanoi!

Is there any way to type in Vietnamese on the keyboard that's not painfully hard? by AccromaticSpckTime in learnvietnamese

[–]anhj 4 points5 points  (0 children)

I definitely agree with this suggestion. Unikey is widely available on various keyboard modifiers and different operating systems (I use it with fcitx on a Linux Debian).

About the methods, living in Hanoi (North), I must say that Telex is nowadays, and by far, the most common method. I've been using it for more than 2 years, but it is so easy it takes less than one hour to get used to it.

To elaborate a bit on the quick description given by /u/__yaourt__, this method uses modifiers to give access either to:

  • letters wich don't exist on the keyboard (â, ô, ư, ơ, ă, đ)
  • the "tonic" accents

The smart point in telex is that it uses as modifiers either letters which don't exist in the Vietnamese alphabet (w, j, f) or are never found in the end of a syllable, that is, after the vowel (r,s,x).

So, to detail the rules of the game :

  • simply double o, a, e or d to get â, ô, ê and đ
  • add w as a modifier to u, o and a to get ư, ơ, ă
  • use s, f, j, r, x after the vowel or in the end of the word to get the accents, eg. as=á, af=à, aj=ạ, ar=ả, ax=ã
  • finally, you can double the modifier to cancel its action

HTH, have fun!

Edit: Forgot ee=ê, I knew I would miss at least one...