texstudio-org / texstudio-macro Goto Github PK
View Code? Open in Web Editor NEWrepository for txs macros
License: GNU General Public License v3.0
repository for txs macros
License: GNU General Public License v3.0
Assume cursor is positioned right before aaa in the following example. Then cursor is moved down one line. So we see that the text from aaa to eee is selected (including):
Example:
Some text aaa more text
eee
But macro "Transpose Cursor and Anchor Positions" fails. The reason is that the macro wants to move the cursor to the right in the second line. But the line is not long enough.
Better bibtex add on is already installed in Zotero.
I imported the "zoteroPicker.txsMacro" in Texstudio macros.
zotero pops up. However, adding citation is not working. The message is
Process started: curl -s http://127.0.0.1:23119/better-bibtex/cayw?format=biblatex&command=autocite&texstudio=true&minimize=true
TeXstudio not found
Process exited normally
I am using Ubuntu 22.04.3 LTS.
What I am missing?
My tex sources is partially destroyed by the format tex macro. Test document and result is attached.
The script that is supposed to produce automatic labels does not work with multiple-word titles.
Expected result:
\section{Title with words}\label{sec:title-with-words}
Actual result:
\section{Title with words}\label{sec:title -ith -ords}
The issue is linked to texstudio-org/texstudio#2728.
The new perl regex compatible engine (QRegularExpression) thinks that the trigger regex expression is faulty: "lookbehind assertion is not fixed length".
Furthermore, line 19
"title = title.toLowerCase().match(/\w+/g).join(\"-\");",
should be
"title = title.toLowerCase().match(/\\w+/g).join(\"-\");",
ie with \\w
, not \w
.
I was using the Toggle between macro, and I realised that, if you use brackets more than one time: e.g. forallin[v]{A_{2}} -> forallin[v][A_{2]}, it doesn't account for them. Maybe it could be helped with an loop here:
rightEnd = line.indexOf( rightChar, leftEnd);
rightEnd = leftEnd
leftPivot = leftEnd
do {
leftPivot = line.indexOf(leftChar, leftPivot+1);
rightEnd = line.indexOf(rightChar, rightEnd+1);
} while (leftPivot > -1 && leftPivot < rightEnd)
Text entered is inserted at all of the multi cursors
Text is only entered at the first multi cursor
Load Macro "Auto-correct multiple capital letters" from macro repository
Create an new document (quick start wiz), a simple two liner is sufficient
\begin{equation*}
\frac{1+1+1+1+1+1+1+1+1+1}
{\frac{1+1+1+1+1+1+1+1+1}
{\frac{1+1+1+1+1+1+1+1}
{\frac{+1+1+1+1+1+1}
{\frac{1+1+1+1+1+1}
{\frac{1+1+1+1+1}
{\frac{1+1+1+1}
{\frac{1+1+1}
{\frac{1+1}
{1}}}}}}}}}
\end{equation*}
As an example add multi cursors before each but the first frac to change frac to dfrac. Enter d (use strg+alt+cursorDownArrow):
After the “Launch Zotero Picker” macro has been updated, it cannot be read-in anymore, the error being:
Macro read-in failed
Error: the value separator is missing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.