Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
80
views
Setting up KOMA-Script for use in Emacs org-mode
I have Linux Mint and want to use KOMA-Script in Emacs org-mode. When running a simple sample template from [here](https://ridaayed.com/posts/writing-letters-in-org-mode/#create-the-yasnippets-template) it generates a number of errors, particularly `"Unknown LaTeX Class 'default-koma-letter'"`. I ha...
I have Linux Mint and want to use KOMA-Script in Emacs org-mode. When running a
simple sample template from [here](https://ridaayed.com/posts/writing-letters-in-org-mode/#create-the-yasnippets-template) it generates a number of errors,
particularly
"Unknown LaTeX Class 'default-koma-letter'"
. I have
already posted this to the Emacs community (see [here](https://emacs.stackexchange.com/questions/81430/setting-up-koma-script)) , but was
referred to this exchange, as it likely has to do with my TeX Live set
up. I have the following version of TeX Live installed:
"pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev"
Following the advice from [here](https://tex.stackexchange.com/questions/331906/installing-using-koma-script-with-tex-live-on-kali-linux) ,
I ran the command sudo apt-get install texlive-latex-recommended
,
which produced the following output:
texlive-latex-recommended is already the newest version (2021.20220204-1).
texlive-latex-recommended set to manually installed.
The following packages were automatically installed and are no longer required:
libwpe-1.0-1 libwpebackend-fdo-1.0-1 linux-headers-5.15.0-91
linux-headers-5.15.0-91-generic linux-headers-5.15.0-92
linux-headers-5.15.0-92-generic linux-headers-5.15.0-97
linux-headers-5.15.0-97-generic linux-image-5.15.0-91-generic
linux-image-5.15.0-92-generic linux-image-5.15.0-97-generic
linux-modules-5.15.0-91-generic linux-modules-5.15.0-92-generic
linux-modules-5.15.0-97-generic linux-modules-extra-5.15.0-91-generic
linux-modules-extra-5.15.0-92-generic linux-modules-extra-5.15.0-97-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
Judging by this, I already seem to have TeX Live installed, but
KOMA-Script isn't used when exporting from org-mode. Which steps do I
need to take to further investigate this resp. to resolve this? As a
secondary issue, should I run sudo apt autoremove
, as suggested by the
terminal, or is this likely to corrupt my TeX Live installation? Any help and prompters would be much appreciated - I am still new to this world!
Tiberius
(101 rep)
Jun 7, 2024, 11:14 AM
0
votes
1
answers
73
views
Do shells have a command equivalent of the "|" pipe symbol? I need something like that in Emacs org-mode tables
I like to construct commands which use the `|` pipe symbol in org tables and `|` symbol messes them up. Do bash et al have a text command that is the equivalent of the symbol? Are there alternative ways of constructing the commands without using the pipe symbol?
I like to construct commands which use the
|
pipe symbol in org tables and |
symbol messes them up. Do bash et al have a text command that is the equivalent of the symbol?
Are there alternative ways of constructing the commands without using the pipe symbol?
vfclists
(7909 rep)
Feb 7, 2023, 08:08 PM
• Last activity: Feb 7, 2023, 10:01 PM
0
votes
1
answers
233
views
EasyPG always asks to pick a gpg key even though epa-file-encrypt-to is set
I want emacs to use one specific key for encryption files. So, when I make a `*.org.gpg` file and save it, `easypg` should automatically transparently take the key and encrypt a buffer. Instead, it asks me to pick a key that would be used. Every time I save a new file. But if close a buffer and open...
I want emacs to use one specific key for encryption files. So, when I make a
*.org.gpg
file and save it, easypg
should automatically transparently take the key and encrypt a buffer.
Instead, it asks me to pick a key that would be used. Every time I save a new file.
But if close a buffer and open it again the system starts to work properly. I've put the value for the epa-file-encrypt-to
variable
* [this is how it looks](https://paste.debian.net/1267258/) for newly created buffer, and
* [this is how it looks](https://paste.debian.net/1267259/) for closed/opened buffer
You see,it's the same. But behavior is different. What do I miss?
Igor Gaisin
(21 rep)
Jan 15, 2023, 11:01 AM
• Last activity: Jan 28, 2023, 09:56 PM
3
votes
2
answers
1414
views
Configuring Org-mode to open PDFs with evince
I'm starting to use `org-mode` to export text to LaTeX. My problem is that it opens the generated PDF with `ebook-viewer` (it is a EPUB, CHM reader) instead of using evince. *Question* Does anyone know how to change this behaviour and configure `evince` to be the default viewer?
I'm starting to use
org-mode
to export text to LaTeX.
My problem is that it opens the generated PDF with ebook-viewer
(it is a EPUB, CHM reader) instead of using evince.
*Question*
Does anyone know how to change this behaviour and configure evince
to be the default viewer?
Dox
(241 rep)
Sep 17, 2013, 01:49 PM
• Last activity: Oct 15, 2020, 09:09 PM
0
votes
1
answers
46
views
ELisp function to org-todo current clocked task and keep current buffer still
Image that I have a clocked task and I want clock-out it and set the heading to done the same time.Most importantly,I don't want to change my focus on my current buffer,I tried to write a function ``` (defun ql/done-current-clocked-task () (interactive) (with-current-buffer (if (funcall 'org-clockin...
Image that I have a clocked task and I want clock-out it and set the heading to done the same time.Most importantly,I don't want to change my focus on my current buffer,I tried to write a function
(defun ql/done-current-clocked-task ()
(interactive)
(with-current-buffer
(if (funcall 'org-clocking-p)
(progn
(org-clock-goto)
(org-todo 'done))
(message "No active clock!"))
)
)
But it failed to retutn to my original buffer but stop at the org file's buffer.I have no ideas.
Qiu Lin
(1 rep)
Apr 22, 2020, 02:18 PM
• Last activity: Apr 23, 2020, 02:24 AM
3
votes
1
answers
324
views
How to extract function comment using sed?
I want to implement a simple utility that would take a C source file and a name of a function, struct, enum or whatever and output the comment directly above the element if present. Ie. /* This is a doc comment * I want this comment extracted */ void function_foo(){ } Usage: utility file.c function_...
I want to implement a simple utility that would take a C source file and a name of a function, struct, enum or whatever and output the comment directly above the element if present.
Ie.
/* This is a doc comment
* I want this comment extracted
*/
void function_foo(){
}
Usage:
utility file.c function_foo
Output:
This is a doc comment
I want this comment extracted
The use case for this is that I want to use org-babel in emacs to tangle in documentation for functions right out of source files. Maybe there is a doxygen tool or clang tool that can do this? I just haven't found it yet. The end result would be that I can easily keep up to date documentation extracted from code directly inside my documentation org file that contains other things as well.
Martin
(169 rep)
May 22, 2019, 05:15 AM
• Last activity: May 22, 2019, 03:39 PM
3
votes
2
answers
584
views
How to apply org-todo to multiple items
Consider an emacs org-mode file like this: ** item 1 ** item 2 ** item 3 ** item 4 Now I can apply `org-todo` to every item separately (bound to `C-c C-t`). But how can I apply it to every item in region at once? Just selecting the region and doing it doesnt't work, it just adds the TODO keyword to...
Consider an emacs org-mode file like this:
** item 1
** item 2
** item 3
** item 4
Now I can apply
org-todo
to every item separately (bound to C-c C-t
). But how can I apply it to every item in region at once? Just selecting the region and doing it doesnt't work, it just adds the TODO keyword to the item below the region.
student
(18865 rep)
Jul 27, 2013, 10:47 AM
• Last activity: Sep 27, 2018, 07:46 AM
2
votes
1
answers
512
views
Org-Mode doesn't export to pdf
I am using emacs with org mode to take notes. I read that org mode can export to pdf whene you type `C-c C-e lp`. When I type this in, `*Org PDF LaTeX Output*` buffer says : > /bin/bash: pdflatex: command not found But when I run `$ pdflatex ` on my terminal the program executes. I belive that emacs...
I am using emacs with org mode to take notes. I read that org mode can export to pdf whene you type
C-c C-e lp
. When I type this in, *Org PDF LaTeX Output*
buffer says :
> /bin/bash: pdflatex: command not found
But when I run $ pdflatex
on my terminal the program executes.
I belive that emacs doesn't login in bash, and as a result it doesn't have acces to my $PATH
variable.
Do you have any idea how I can fix this.
Thanks in advance.
sted
(21 rep)
May 20, 2017, 07:22 PM
• Last activity: Jun 5, 2018, 03:21 PM
2
votes
2
answers
221
views
Can python extract org-mode tables from org documents?
I'm trying to write some python code that reads specified tables in [org mode][1] documents. For example, I have a file `~/foo.org` $ cat ~/foo.org #+Title: Example Org Document * Section One Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. #+TBLNAME: table1 | i | want | python | to...
I'm trying to write some python code that reads specified tables in org mode documents. For example, I have a file
~/foo.org
$ cat ~/foo.org
#+Title: Example Org Document
* Section One
Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.
#+TBLNAME: table1
| i | want | python | to |
|-------+---------+--------+--------|
| read | this | table | only |
| 1 | 3 | 2 | 4 |
|-------+---------+--------+--------|
| i | want | the | dashed |
| lines | ignored | by | python |
#+TBLNAME: table2
| i | don't | need | python | to |
|------+-------+-------+--------+----|
| read | this | table | 9 | 8 |
| 7 | 6 | 5 | 4 | 3 |
| 2 | 1 | 0 | 22 | 17 |
If my file were less complex, say
$ cat ~/bar.org
| i | want | python | to |
| read | this | table | only |
| 1 | 3 | 2 | 4 |
| i | want | the | dashed |
| lines | ignored | by | python |
then I could read the table into python with
import csv
csv.DictReader(open('~/bar.org'), delimiter='|')
Is there any way to parse my desired table from the more complicated ~/foo.org
?
Brian Fitzpatrick
(2907 rep)
May 11, 2016, 08:41 AM
• Last activity: May 11, 2016, 07:50 PM
2
votes
2
answers
982
views
Footnotes in emacs org mode: how to disable [n], but keep [fn:]?
How can I disable the `[n]` being linked to a footnote and highlighted? `[n] can be many things, like any index of an array. So, I want my footnotes to be `[fn:n]` and only `[fn:n]`.
How can I disable the
[n]
being linked to a footnote and highlighted? [n] can be many things, like any index of an array. So, I want my footnotes to be
[fn:n] and only
[fn:n]`.
Joseph Schliesser
(189 rep)
Mar 3, 2014, 01:30 PM
• Last activity: Jan 6, 2016, 03:16 PM
2
votes
1
answers
2482
views
Org-mode: Inserting (advanced) LaTeX equations for HTML expot
I'm using `org-mode` as working environment, and so far has been extremely useful. One of the wonders of it is the versatility of exporting... I can export to LaTeX or HTML or ODT files from the same code. :-) However, I would like to be able of writing an `aling` LaTeX environment and get it export...
I'm using
org-mode
as working environment, and so far has been extremely useful.
One of the wonders of it is the versatility of exporting... I can export to LaTeX or HTML or ODT files from the same code. :-)
However, I would like to be able of writing an aling
LaTeX environment and get it exported properly to HTML.
I've tried different form, but nothing!
For example: the code returns nothing
#+BEGIN_LaTeX
\begin{align}
\begin{pmatrix}
x' \\ y' \\ z'
\end{pmatrix}
=
\begin{pmatrix}
R11 & R12 & R13\\
R21 & R22 & R23\\
R31 & R32 & R33
\end{pmatrix}
\begin{pmatrix}
X \\ Y \\ Z
\end{pmatrix}
\end{align}
#+END_LaTeX
Any ideas?... Thanks!
Dox
(241 rep)
Oct 11, 2013, 12:49 PM
• Last activity: Sep 29, 2014, 10:08 PM
0
votes
1
answers
65
views
org-mode How to link to an rmail message
I want to link to an rmail message in an org file. I know I use rmail:folder#, but how do I find the folder name and the id # number? There's plenty of information on the Internet telling me that org-mode supports linking to rmail, but I've not found any *real* examples of how to do it.
I want to link to an rmail message in an org file. I know I use rmail:folder#, but how do I find the folder name and the id # number? There's plenty of information on the Internet telling me that org-mode supports linking to rmail, but I've not found any *real* examples of how to do it.
guest
(1 rep)
Sep 8, 2014, 08:39 AM
• Last activity: Sep 8, 2014, 09:54 AM
1
votes
0
answers
154
views
In Emacs' org-mode, any way to hide the subtree with timestamp not set to today?
I just started to learn [org-mode][1] (and *Emacs*) and I plan to use it as a *calendar/timetable/todo-list* hybrid. Is it possible to hide entries with timestamp not set to today? If so, how? For example, say if today is 2014-09-18: * Lunch * TODO Call boss ** Report :: Nothing happened * TODO Call...
I just started to learn org-mode (and *Emacs*) and I plan to use it as a *calendar/timetable/todo-list* hybrid. Is it possible to hide entries with timestamp not set to today? If so, how?
For example, say if today is 2014-09-18:
* Lunch
* TODO Call boss
** Report :: Nothing happened
* TODO Call Bob ; This entry will not be shown
; This entry will not be shown
; This entry will not be shown
** Discuss :: Project Alice ; This entry will not be shown
** Discuss :: Upgrading to CentOS 5 ; This entry will not be shown
* TODO Fetch Claire from school
Incidentally, are there any more efficient way to deal with calendar/timetable/todo-lists in org-mode?
Anonymous Coward
(11 rep)
Jul 31, 2014, 03:31 AM
• Last activity: Jul 31, 2014, 05:15 AM
1
votes
0
answers
271
views
emacs org-mode clocktable - clock-in clock-out columns
Is there a way to configure the summary clocktable to have two extra columns for clock-in and clock-out times. | Headline | Clock-in | Clock-out | Time | | |-------------------------------------------+----------+-----------+--------+------| | *Total time* | | | *0:51* | | |--------------------------...
Is there a way to configure the summary clocktable to have two extra columns for clock-in and clock-out times.
| Headline | Clock-in | Clock-out | Time | |
|-------------------------------------------+----------+-----------+--------+------|
| *Total time* | | | *0:51* | |
|-------------------------------------------+----------+-----------+--------+------|
Tom Cuthbert
(11 rep)
Jul 28, 2014, 11:49 PM
• Last activity: Jul 28, 2014, 11:53 PM
2
votes
1
answers
933
views
Configuring footnotes in emacs org mode
I came along the post https://unix.stackexchange.com/questions/117924/footnotes-in-emacs-org-mode-how-to-disable-n-but-keep-fn some months ago, and, as I said there, I don't believe the answer is right. However, I 'd still like to know how to ignore numeric foot notes (in the form [n]). The org mode...
I came along the post https://unix.stackexchange.com/questions/117924/footnotes-in-emacs-org-mode-how-to-disable-n-but-keep-fn some months ago, and, as I said there, I don't believe the answer is right.
However, I 'd still like to know how to ignore numeric foot notes (in the form [n]).
The org mode docs say "A plain numeric footnote marker. Compatible with footnote.el, but not recommended because something like ‘’ could easily be part of a code snippet. that". Sadly, it does not explain how to change this.
Quora Feans
(3907 rep)
Jun 5, 2014, 07:49 PM
• Last activity: Jul 28, 2014, 05:47 AM
1
votes
1
answers
1030
views
Custom date format in emacs org-mode
I want to have something like "Dec 15, 2011" Emacs org-mode only lets me toggle between and . Can anyone suggest a way to do this?
I want to have something like "Dec 15, 2011"
Emacs org-mode only lets me toggle between and .
Can anyone suggest a way to do this?
shyamupa
(113 rep)
Dec 5, 2013, 10:48 PM
• Last activity: Dec 5, 2013, 11:31 PM
2
votes
1
answers
209
views
Shortcut for adding `org-mode` environment
I'm using `org-mode` for organizing myself (very useful so far!). However, it is kind of annoying writing #+begin_comment ... #+end_comment each time I'd like to insert an environment. **Question** Is there a shortcut to insert the `#+begin_` and `#+end_` for a given environment? In the same way `C-...
I'm using
org-mode
for organizing myself (very useful so far!). However, it is kind of annoying writing
#+begin_comment
...
#+end_comment
each time I'd like to insert an environment.
**Question**
Is there a shortcut to insert the #+begin_
and #+end_
for a given environment?
In the same way C-c C-o comment RET
would insert
\begin{comment}
\end{comment}
in latex-mode
.
Dox
(241 rep)
Oct 2, 2013, 07:39 PM
• Last activity: Oct 8, 2013, 10:49 AM
2
votes
1
answers
181
views
In emacs are any key sequences available for user macro bindings in all modes
I have recently started using `org mode` in emacs, but my macro bound in my initialisation file to `C-x C-k T` no longer works because this combination is used by `outline mode` which underpins `org mode`. I went by "Learning Gnu Emacs" by Debra Cameron et al. pub by O'Reilly, which states on page 1...
I have recently started using
org mode
in emacs, but my macro bound in my initialisation file to C-x C-k T
no longer works because this combination is used by outline mode
which underpins org mode
. I went by "Learning Gnu Emacs" by Debra Cameron et al. pub by O'Reilly, which states on page 160 that the sequences C-x C-k
with 0-9 and A-Z are reserved for user macro bindings. This itself is contradicted, I have just noticed, on page 193, where, in outline mode
, C-c C-k
is bound to Show -> Show branches
.
So, please, are there any key sequences that are available still, and will be in all circumstances?
I have left out the detail of my macro because it is irrelevant to this question.
---
I have left the original question as it is to explain my mistake. Thanks to @Gilles I realise that I made a silly mistake in confusing C-c
with C-x
. The problem manifested itself in that using .org
mode seemed to redefine my key bindings. This I have now resolved by using C-x
instead of C-c
. Macros bound to these still work in .org mode
As to the question of what key sequence bindings are available, see:
. This is part of an excellent and comprehensive set of articles on emacs by "Xah", available at: , and well worth the $15 he asks for them.
This is almost an answer rather than an extension to my question. I have put it here to retain my acceptance of @Gilles earlier answer, and as it is too long for a comment
Harry Weston
(1339 rep)
Sep 29, 2013, 07:09 PM
• Last activity: Oct 1, 2013, 03:52 PM
4
votes
1
answers
614
views
Timelineview of all agenda files
Is it possible to get a timeline view that combines the entries from all agenda files?
Is it possible to get a timeline view that combines the entries from all agenda files?
Mike T
(41 rep)
Sep 11, 2012, 04:36 PM
• Last activity: May 18, 2013, 06:15 PM
4
votes
1
answers
513
views
Org-mode tables: How to insert result of a system command?
In Org-mode I would like to insert the result of a Unix command in a field. For instance, consider I have the following table: | / | | /bin | | /usr/bin | | /lib | | /usr/lib | I would like to insert a second column such as $2 = Is this possible?
In Org-mode I would like to insert the result of a Unix command in a field. For instance, consider I have the following table:
| / |
| /bin |
| /usr/bin |
| /lib |
| /usr/lib |
I would like to insert a second column such as
$2 =
Is this possible?
rahmu
(20511 rep)
Jun 26, 2012, 03:06 PM
• Last activity: Jun 26, 2012, 10:17 PM
Showing page 1 of 20 total questions