1
submitted 6 hours ago* (last edited 6 hours ago) by cows_are_underrated@feddit.org to c/emacs@programming.dev

So I have a problem I would bet at least some people know: Styling tables inside Orgmode. The problem is, that you have to copy paste the same configuration that makes sure your table looks good for each single table. Since this is quite tedious and quite a pain if you have lots and lots of tables. After some searching I figured out, that I can use the tabularray LaTeX Package for this. The problem is, that I quite suck with LaTeX, and there is not that much information about global tabular enviroments for this. The only Information I could find was this stackexchange post regarding global table enviroments and some general information about tabularray, which can be found here.

The table style I want is in fact quite simple. I want the top row to be colored grey (which I already implemented myself) and I need the table style to allow for multiline columns and I need automatic line breaks in case theres more text in a single cell than theres space in the line. Additionally the table should always be aligned in the center of the page.

I have the following example orgmode-document (the \renewenviroment command is to switch the default enviroment from tables to my global table style)

#+Options: toc:nil

#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper]
#+LATEX_HEADER: \usepackage{booktabs}
#+LATEX_HEADER: \usepackage{tabularray}
#+LATEX_HEADER: \usepackage{xcolor}
#+LATEX_HEADER: \NewTblrEnviron{globaltbl}
#+LATEX_HEADER: \SetTblrInner[globaltbl]{hlines, vlines, row{1} = {bg=gray5, fg=white, font=\bfseries}, rowsep = 4pt, colsep = 8pt, width = \linewidth}
#+LATEX_HEADER: \SetTblrOuter[globaltbl]{baseline = m}
#+LATEX_HEADER: \renewenvironment{tabular}{\begin{globaltbl}}{\end{globaltbl}}

|-----------+-------------------+-----------------------------------------------------------------------------------|
| Exit code | Type              | Meaning                                                                           |
|-----------+-------------------+-----------------------------------------------------------------------------------|
|         0 | Internal/External | Succesfull operation; logical true                                                |
|           | some other        |                                                                                   |
|-----------+-------------------+-----------------------------------------------------------------------------------|
|         1 | Internal          | Non successfull operation; logical false and some other text that is not important |

which generates the following LaTeX file:

% Intended LaTeX compiler: pdflatex
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{tabularray}
\usepackage{booktabs}
\usepackage{tabularray}
\usepackage{xcolor}
\NewTblrEnviron{globaltbl}
\SetTblrInner[globaltbl]{hlines, vlines, row{1} = {bg=gray5, fg=white, font=\bfseries}, rowsep = 4pt, colsep = 8pt, width = \linewidth}
\SetTblrOuter[globaltbl]{baseline = m}
\renewenvironment{tabular}{\begin{globaltbl}}{\end{globaltbl}}
\author{cow}
\date{\today}
\title{}
\hypersetup{
 pdfauthor={cow},
 pdftitle={},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 30.2 (Org mode 9.7.11)}, 
 pdflang={English}}
\begin{document}

\begin{center}
\begin{tabular}{rll}
\hline
Exit code & Type & Meaning\\
\hline
0 & Internal/External & Succesfull operation; logical true\\
 & some other & \\
\hline
1 & Internal & Non successfull operation; logical false and some other text that is not important\\
\end{tabular}
\end{center}
\end{document}

which renders to the following table:

As you can see in the first column, that tabularray does not insert an hline to create a new coluumn, but still renders this thinner line. Is there a way to turn this off? You can also see, that the rest of the last cell gets cut off.

I would really appreciate if someone could help me with this, since I have zero Idea what else to try.

Is that even legal? I know that they can do this in the US, but I have no clue about the legality of this in the Netherlands.

Ich würde sagen, es gibt außer demokratisch legitimierter Mittel keinen Ausweg aus der Situation.

Meintest du Demokratisch ilegitime Mittel?

AFAIK they get all their water through their food, so no additional water supply is needed.

[-] cows_are_underrated@feddit.org 10 points 6 days ago* (last edited 6 days ago)

Das nicht. Das war eine Anleitung dazu wie man mit einfachsten Mitteln Brandsätze zum anzünden von Kabeln baut. Herausgegeben wurde das ganze von einer auch im Moment agierenden Gruppe.

63
Ich🐄🧨👂iel (thelemmy.club)
submitted 6 days ago* (last edited 6 days ago) by cows_are_underrated@feddit.org to c/ich_iel@feddit.org

Der angesprochene Beitrag*: https://www.youtube.com/watch?v=YDUdPuvf_4w

Nicht die Infos die ich erwartet habe, aber interessant war die Anleitung auf jeden Fall. Danke dafür BR.

* Den Beitrag an sich würde ich eher nicht empfehlen, aber ist einfach lustig, wie die das mal so ganz entspannt nebenbei erklären wo man diese Anleitungen dafür findet.

Wouldn't count civilians becoming addicted "good news"

MDMA is also something you can not really take on a very regular basis. Kinda pointless to take it every other week or even more often.

12
62

"Durstlöscher" (thirst extinguisher) is a quite iconic German Drink.

117
submitted 1 week ago* (last edited 1 week ago) by cows_are_underrated@feddit.org to c/trans_joy@lemmy.blahaj.zone

I present to you this Banger of an outfited I got for a total price of 7€ (which I spend on the skirt). I found the top in a bag of clothes that has been given away for free.

The E also do be working on my tiddies, but they are still barely seeable.

Edit: Thanks for all the nice compliments. It really means a lot for me.

27

Ich war Zeit meines Lebens furchtbar in Kunst. Ich habe es wirklich aus tiefstem Herzen gehasst, weil ich weder zeichnen, noch mit Wasserfarben (ich habe diese ollen Dinger aus tiefstem Herzen gehasst, jedes einzige Bild sah streifig aus, weil ich keine Gleichmäßige Deckung hinbekommen habe) umgehen konnte. Das ganze hat dann dazu geführt, dass ich halt verinnerlicht hatte, dass ich halt einfach nicht malen kann und das am besten einfach sein lasse. Irgendwann bin ich dann mit Warhammer Figuren angefangem und siehe da, ich kann doch malen. Wir haben in der Schule im Kunstunterricht nie gelernt wie man wirklich malt. Uns wurde ein Blatt und ein Wassermalkssten vor die Füße gesetzt mit der Anweisung "male ein Bild". So absolute Grundlagen wie dass Gegenstände die näher dran sind heller sind als weiter entfernte Gegenstände haben wir nie gelernt. Der Farbkreis wurde erst in der 8ten Klasse behandelt (also viel zu spät, als dass ich damit was anfangen könnte, weil "ich kann ja schließlich nicht malen").

Der Kunstunterricht hat die Gefördert, denen von ihren Eltern gezeigt bekommen haben wie man mit Wassermalfarben malt und den Rest einfach auf der Strecke liegen gelassen und zusätzlich noch dsrauf eingetreten, weil ich mich ja nur etwas mehr anstrengen muss.

177

For about 100% of my life I wore the same look: pants and T-Shirt/Hoodie. In Summer it was a short pair of pants and a T-Shirt. Another important thing is, that I rarely get sunburn, even when not using suncream, and I therefore rarely use suncream. These two things get quite funny, when You start to transition and start wearing more revealing clothes than usual.

So there was a pride parade a few weeks back and I decided to wear this very cool shoulder free top. Guess who forgot to wear suncream, and then burned all of her shoulders, because she never ran around shoulder free, and therefore her skin was not adapted to the sun?

So please for the love of god, when going out with more revealing clothes than usual:

WEAR FUCLING SUNCREAM

29
Found one on Lemmy (thelemmy.club)

I have no clue what its supposed to mean either.

36
4
55
Ich🐄🎉💬iel (thelemmy.club)

Dieser eine Bruder hat es geschafft sich so gottlos aus dem Leben zu koksen (wir vermuten dass es Koks ist), dass der wirklich den gesamten Abend über irgendwelche Leute mit irgendeinem Scheiß vollgelabert hat und es ihn auch nicht interessiert hat, dass niemand ihn beachtet hat. Ich wollte halt nur einem anderen Gespräch zuhören und auf einmal fängt der Typ an mir audio und Video auf Latein in mein Ohr zu deklinieren.

5

So ihr lieben, ich brauche so langsam mal wieder ein paar neue Podcast Empfehlungen. Ich höre am liebsten nerdige Informative Podcasts. Im Moment höre ich primär Och Menno von Sven Uckermann, sowie Digitale Anomalien von Wolfgang Schoch.

Ich freue mich auf eure Empfehlungen.

[-] cows_are_underrated@feddit.org 182 points 4 months ago

Working outside can be fun. At least AS long AS you dont need that good of an internet connection, have a comfy place to sit in and are at a somewhat dark spot, so you can still see on your screen.

If and only if these three things are all given, than it can be quite nice to work outside.

[-] cows_are_underrated@feddit.org 117 points 6 months ago* (last edited 6 months ago)

While the meme is very funny, it is technically incorrect. Linux has two major ways of terminating a process. When Linux wants a process to terminate execution (for whatever reason) it first sends the SIGTERM signal to the process, which basically "asks" the process to terminate itself. This has the advantage, that the process gets the chance to save its state in a way, that the execution can continue at another time. If the process however ignores the SIGTERM signal at some point Linux will instead forcefully terminate the execution using the SIGKILL signal. This represents what the image shows.

Before someone gets mat at me: I know, that there are like 50 more Signals relevant to this, but wanted to keep it simple.

[-] cows_are_underrated@feddit.org 121 points 1 year ago* (last edited 1 year ago)

I just want to point out, that we are really talking about building nukes again in 2025.

[-] cows_are_underrated@feddit.org 102 points 2 years ago

That was a very diplomatic response to some stupid asshole like this.

[-] cows_are_underrated@feddit.org 115 points 2 years ago

Say it with me:

No. Research. Is. Useless.

If we say that research is useless because it doesn't bring you mo ey we could stop teaching children math beyond the absolute basics because "it doesn't brinf them anything". This is stupid, because those are the fundamentals that tech children to thing logically and become useful member of society. Same with research. It teaches us the things necessary to maybe invent some of the most useful stuff ever seen

[-] cows_are_underrated@feddit.org 132 points 2 years ago

This isn't entirely true. They are backing the check by our Bundesverfassungsgericht (our supreme court) if the AfD is against the constitution. That's a significant difference. The article makes it sound like the Bundestag can just ban the party, but that(luckyly) isn't the case(because if it would any political party could just ban the enemies(as it happened in the 1930s)). Instead the Bundestag, or the Bundesrat(its made of representatives from our states and) , have to order the Bundesverfassungsgericht to check if the AfD is a party hostile to the constitution.

Also worth mentioning, that if this goes through, we won't see a result in the near future. Such a case takes about 4-6 years to be resolved.

view more: next ›

cows_are_underrated

0 post score
0 comment score
joined 2 years ago
MODERATOR OF