Search found 13 matches

by CThule
Thu Dec 17, 2015 1:06 pm
Forum: General
Topic: Insert bash code - WYSIWYG?
Replies: 6
Views: 12285

Insert bash code - WYSIWYG?

Finally solved it!
And Johannes_B, sorry for not creating a MWE. Trying to create one actually solved my problem.

It consisted of two things:
First issue:
I had four files in the same folder as the master.tex: lstdoc.sty, lstlang1.sty, lstlang2.sty, lstlang3.sty. Renaming these fixed the first ...
by CThule
Mon Dec 07, 2015 1:46 pm
Forum: General
Topic: Insert bash code - WYSIWYG?
Replies: 6
Views: 12285

Insert bash code - WYSIWYG?

Okay, I will try. My current attempt looks like this:

\begin{codeBash}[]
#!/usr/bin/env bash
#Name of output without guid
JsonOutputProperty=output
#Name of input without guid
JsonInputProperty=input
#Path to the FMU to chain
FmuPath=$1
#"fmus/performance/integrate"
#cat ${FmuPath ...
by CThule
Mon Nov 30, 2015 1:14 pm
Forum: General
Topic: Insert bash code - WYSIWYG?
Replies: 6
Views: 12285

Insert bash code - WYSIWYG?

Hi. I am trying to insert bash code and I make use of a lot of special characters in lots of different order: e.g. {\([^"]\+\)}.*/\1/p$#@ and more.
I have come to the conclusion, that I simply cannot create a good solution for syntax highlighting, and therefore I just want LaTeX to print my exact ...
by CThule
Thu Nov 12, 2015 4:58 pm
Forum: General
Topic: listings: Put language name of frame
Replies: 16
Views: 13297

listings: Put language name of frame

Hi Stefan K. I am having trouble with using the listings and tcb inside a minipage, because minipage is not floating.

I extended it, defining a new float type with captions for this purpose, which can also generate a list of listings.

\documentclass{article}
\usepackage{listings}
\usepackage ...
by CThule
Thu Nov 12, 2015 3:15 pm
Forum: General
Topic: listings: Put language name of frame
Replies: 16
Views: 13297

Re: listings: Put language name of frame

Okay. Thank you. I am creating different environments for the different languages now :)
by CThule
Thu Nov 12, 2015 1:38 pm
Forum: General
Topic: listings: Put language name of frame
Replies: 16
Views: 13297

listings: Put language name of frame

Yes I get that, but then I have to insert my actual code like this:

\begin{listing}
\begin{code}{JSON}{json}
{ "message": "Hello, World!" }
\end{code}
\caption{Example of a JSON block}
\label{lst:json}
\end{listing}


Wrapping both the listing and code inside a newcommand I could just do ...
by CThule
Thu Nov 12, 2015 12:32 pm
Forum: General
Topic: listings: Put language name of frame
Replies: 16
Views: 13297

listings: Put language name of frame

Hi Johannes_B, I actually did come up with the newtcblisting.
My reason for not using different colors and therefore putting the listing in the title slot is, that I have to write a report on about 80 pages using 7-8 different languages. It might be difficult remembering just what color is which ...
by CThule
Wed Nov 11, 2015 10:42 pm
Forum: General
Topic: \newcommand results in file ended while scanning for \next
Replies: 1
Views: 3425

\newcommand results in file ended while scanning for \next

I am trying to turn it into a command, but I am having some trouble with this.
My listing that works, which I want to turn into a command.
\begin{listing}
\begin{tcblisting}{title = {Pseudocode},
fonttitle=\sffamily,
listing only,
listing remove caption=false,
label = lst:json2,
colframe ...
by CThule
Wed Nov 11, 2015 10:13 pm
Forum: General
Topic: listings: Put language name of frame
Replies: 16
Views: 13297

listings: Put language name of frame

I do not think a listing inside the box fits very well with the rest of my report.

I created a new post for the issue below, because this post has been solved.
New post: http://latex-community.org/forum/viewtopic.php?f=5&t=26877
I am trying to turn it into a command, but I am having some trouble ...
by CThule
Wed Nov 11, 2015 5:03 pm
Forum: General
Topic: listings: Put language name of frame
Replies: 16
Views: 13297

Re: listings: Put language name of frame

Perfect, thank you!