Giter Club home page Giter Club logo

ktikz's People

Contributors

alexfikl avatar delthas avatar fhackenberger avatar flying-sheep avatar gprud avatar jfmcarreira avatar jfmcarreira-sp avatar krabo0om avatar kstar avatar llimeht avatar peng1999 avatar pinotree avatar upupming avatar zeule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ktikz's Issues

Code detecting existence of template doesn’t work

I created a readable plain text file, selected it as template, but still the else branch is hit here:

QFile templateFile(templateFileName);
#ifdef KTIKZ_USE_KDE
KFileItem templateFileItem(QUrl::fromLocalFile(templateFileName));
if (templateFileItem.determineMimeType().parentMimeTypes().contains(QLatin1String("text/plain"))
#else
if (QFileInfo(templateFile).isFile()
#endif
&& templateFile.open(QIODevice::ReadOnly | QIODevice::Text) // if user-specified template file is readable
&& !tikzReplaceText.isEmpty())
{

If I output the mime list, I get just ("application/octet-stream"), while I also get

$ file --mime-type Dev/TeX/ktikz-context.pgs
Dev/TeX/ktikz-context.pgs: text/plain

I assume if the file itself has the text/plain mime already, its parents only contain application/octet-stream.

qtikz corrupts UTF-8 files

After loading and saving UTF-8 encoded .tex files (with umlauts) with qtikz 0.10-4 in ubuntu 15.10, the characters are garbled.

arnd@kallisto:~/packages/ktikz$ cat empty.tex 
äüo
arnd@kallisto:~/packages/ktikz$ file empty.tex 
empty.tex: UTF-8 Unicode text

After opening file empty.tex in qtikz and saving it as empty_saved.tex:

arnd@kallisto:~/packages/ktikz$ cat empty_saved.tex 
öäü
arnd@kallisto:~/packages/ktikz$ file empty_saved.tex 
empty_saved.tex: UTF-8 Unicode text

Hexdump of the files:

arnd@kallisto:~/packages/ktikz$ hexdump empty.tex 
0000000 b6c3 a4c3 bcc3 000a                    
0000007
arnd@kallisto:~/packages/ktikz$ hexdump empty_saved.tex 
0000000 83c3 b6c2 83c3 a4c2 83c3 bcc2 000a     
000000d

Typo in INSTALL

FYI, I think libkf5iconthemes-devs should be libkf5iconthemes-dev

ktikz/INSTALL

Line 20 in d7f983b

- libkf5doctools-dev, libkf5xmlgui-dev, libkf5texteditor-dev, libkf5parts-dev, libkf5iconthemes-devs

Qtikz on Windows 10: MikTeX pdflatex does not compile the temp tex file

Since a month ago qtikz (using MikTeX pdflatex) has failed to compile the temporary tex file, producing the error message:
[LaTeX] Error: run failed.
[LaTeX] Warning: could not load LaTeX logfile.

My test file is very simple:
\begin{tikzpicture}
\node (a) {a};
\end{tikzpicture}

Three files appear in the system temp/qtikz directory:
texput.log
temptikzcodep21180.pgf
temptikzcodep21180.tex

The pgf and tex files are correct (the tex file compiles correctly if run independently as a standalone file). No temporary pdf is produced.

Texput.log reads:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.6) (preloaded format=pdflatex 2020.6.29) 30 JUN 2020 16:54
entering extended mode
**C:/Users/JHSH~1.BIO/AppData/Local/Temp/qtikz/temptikzcodep21180.tex

???:0: Emergency stop.

\protect
<*> C:/Users/JHSH~
1.BIO/AppData/Local/Temp/qtikz/temptikzcodep21180.tex
Here is how much of TeX's memory you used:
4 strings out of 480790
113 string characters out of 2891204
238890 words of memory out of 3000000
16119 multiletter control sequences out of 15000+200000
532338 words of font info for 24 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
3i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,50000s

???:0: ==> Fatal error occurred, no output PDF file produced!

I have been watching whether someone else also has this problem (stack exchange, stack overflow, google) but nothing so far.
Any idea what could cause this problem?

HELP: Unable to build kitkz for Windows

Hello, I have taken a look at the windows install file in the repo, but it seems a little bit outdated and some of the links are broken. After some major googling and some hours, I have been able to get it to build in QT Creator. But I keep getting two major errors.

  1. there is no dll file called poppler-qt5 in the newer versions of poppler (see first pic). But rather it seems to be renamed to libpoppler-qt5-1.dll.
    image

  2. if I change it to libpoppler-qt5-1, I am able to build an executable build it keeps giving me a procedure point could not be found error (see second pic)
    tempsnip

Any help with this will very much appreciated... because I have been on this for a few days😅

Add support for other TikZ packages

Hi Florian,

I would like to implement support for other libraries in KTikz, like some of TikZ libs (external, …) or PgfPlots which I use a lot.
Making some “completion data files” (as Texstudio’s *.cwl) would be nice. These files could be loaded on request. I think that reading .cwl files is not so complicated, but I’m not sure that these files are complete.

Could you recommend me a way to implement this feature?

Thanks,
GP

Replace text editor with KTextEditor

I would like to have some feedback on the interest of the users to have KTextEditor replacing the current text editor widget.

This will give a similar look as Kate, Kile and other KDE text editors.

Let me know what you think.

Confusing menu Export/Print

The File menu has three submenus that use the same words, namely Export, Print and Export/Print. They all have different (if intersecting) functionalities. The one named Export/Print especially bothers me since I often confuse it for Export. Frankly the only unique item in this submenu is Export To Html and all the others duplicate Print functionality. I believe removing this submenu and moving Export To Html to Export will improve user experience. The other options could be to duplicate everything from Export in it or to rename it to avoid confusion.

Ktikz version: 0.13.2

KtikZ inserts text after EOF

Quite often when saving a tikz file from KtikZ, it inserts text after the end of the document.

Simplified example document, content before opening the document with KtikZ and also how it is being displayed in KTikZ:

\begin{tikzpicture}
    \draw (0, 0) -- (0, 1);
\begin{tikzpicture}

When saving the document using KTikZ, it is modified in a way that starting from some point in the document, any text is written to disk twice. Example file on disk:

\begin{tikzpicture}
    \draw (0, 0) -- (0, 1);
\begin{tikzpicture}
aw (0, 0) -- (0, 1);
\begin{tikzpicture}

I'm using these software versions on Fedora 28:
ktikz-0.12-2.fc28.x86_64
qt5-qtbase-5.10.1-6.fc28.x86_64
kf5-kio-core-libs-5.47.0-2.fc28.x86_64
tex-preview-12.1-4.fc28.noarch
glibc-2.27-19.fc28.x86_64

Installing on Mac

I got the error

Project ERROR: Could not resolve SDK path for 'macosx11.6'

I used xcodebuild -sdk -version to figure out what SDK was installed (macosx11.3 in my case), and added QMAKE_MAC_SDK = macosx11.3 to qtikz.pro.

How to build on Windows

Hi, any information about installing this software on Windows?

The INSTALL-0.11.Windows file is too old, and the steps are not practical at all!

Qt build expect sources to be in parent directory

When building, I use the following layout:

build/
ktikz-$version/

And then I run qmake ../ktikz-$version/qtikz.pro inside build/.
This does not work, while:

ktikz-$version/build/

and qmake ../qtikz.pro works.

Build error:

In file included from ../ktikz-0.12/common/templatewidget.h:22,
                 from ../ktikz-0.12/common/templatewidget.cpp:19:
ui/ui_templatewidget.h:18:10: fatal error: ../common/utils/combobox.h: No such file or directory
 #include "../common/utils/combobox.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1357: obj/templatewidget.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../ktikz-0.12/common/templatewidget.h:22,
                 from ../ktikz-0.12/common/tikzpreviewcontroller.cpp:49:
ui/ui_templatewidget.h:18:10: fatal error: ../common/utils/combobox.h: No such file or directory
 #include "../common/utils/combobox.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Build failure

When trying to build the KDE version on ArchLinux:

index.docbook:19: warning: failed to load external entity "dtd/kdex.dtd"
]>
  ^
index.docbook:21: parser error : Entity 'language' not defined
<book lang="&language;" id="book-ktikz-handbook">
                      ^
index.docbook:21: element book: validity error : No declaration for attribute lang of element book
<book lang="&language;" id="book-ktikz-handbook">
                                                ^
index.docbook:21: element book: validity error : No declaration for attribute id of element book
<book lang="&language;" id="book-ktikz-handbook">
                                                ^
index.docbook:27: element application: validity error : No declaration for element application
<title>The &ktikz; Handbook</title>
                  ^
index.docbook:27: element title: validity error : No declaration for element title
<title>The &ktikz; Handbook</title>
                                   ^
index.docbook:31: element firstname: validity error : No declaration for element firstname
	<firstname>Glad</firstname>
	                           ^
index.docbook:32: element surname: validity error : No declaration for element surname
	<surname>Deschrijver</surname>
	                              ^
index.docbook:34: element email: validity error : No declaration for element email
		<address><email>[email protected]</email></address>
		                                                  ^
index.docbook:34: element address: validity error : No declaration for element address
		<address><email>[email protected]</email></address>
		                                                            ^
index.docbook:35: element affiliation: validity error : No declaration for element affiliation
	</affiliation>
	              ^
index.docbook:36: element author: validity error : No declaration for element author
</author>
         ^
index.docbook:39: element authorgroup: validity error : No declaration for element authorgroup
</authorgroup>
              ^
index.docbook:42: element year: validity error : No declaration for element year
	<year>2010, 2011</year>
	                       ^
index.docbook:43: element holder: validity error : No declaration for element holder
	<holder>Glad Deschrijver</holder>
	                                 ^
index.docbook:44: element copyright: validity error : No declaration for element copyright
</copyright>
            ^
index.docbook:48: element legalnotice: validity error : No declaration for attribute id of element legalnotice
<legalnotice id="legalnotice-fdl">&FDLNotice;</legalnotice>
                                 ^
index.docbook:48: parser error : Entity 'FDLNotice' not defined
<legalnotice id="legalnotice-fdl">&FDLNotice;</legalnotice>
                                             ^
index.docbook:48: element legalnotice: validity error : No declaration for element legalnotice
<legalnotice id="legalnotice-fdl">&FDLNotice;</legalnotice>
                                                           ^
index.docbook:57: element date: validity error : No declaration for element date
<date>2011-02-08</date>
                       ^
index.docbook:58: element releaseinfo: validity error : No declaration for element releaseinfo
<releaseinfo>0.2</releaseinfo>
                              ^
index.docbook:61: parser error : Entity 'kde' not defined
	<para>&ktikz; is program for &kde; for creating TikZ (from the LaTeX pgf packag
	                                  ^
index.docbook:61: element para: validity error : No declaration for element para
program for &kde; for creating TikZ (from the LaTeX pgf package) diagrams.</para
                                                                               ^
index.docbook:62: element abstract: validity error : No declaration for element abstract
</abstract>
           ^
index.docbook:69: element keyword: validity error : No declaration for element keyword
	<keyword>KDE</keyword>
	                      ^
index.docbook:70: element keyword: validity error : No declaration for element keyword
	<keyword>KtikZ</keyword>
	                        ^
index.docbook:71: element keyword: validity error : No declaration for element keyword
	<keyword>Editor</keyword>
	                         ^
index.docbook:72: element keyword: validity error : No declaration for element keyword
	<keyword>PGF</keyword>
	                      ^
index.docbook:73: element keyword: validity error : No declaration for element keyword
	<keyword>LaTeX</keyword>
	                        ^
index.docbook:74: element keywordset: validity error : No declaration for element keywordset
</keywordset>
             ^
index.docbook:75: element bookinfo: validity error : No declaration for element bookinfo
</bookinfo>
           ^
index.docbook:86: element chapter: validity error : No declaration for attribute id of element chapter
<chapter id="chap-introduction">
                               ^
index.docbook:87: element title: validity error : No declaration for element title
<title>Introduction</title>
                           ^
index.docbook:95: parser error : Entity 'kde' not defined
&ktikz; is a TikZ/PGF code editor for &kde; which allows to preview the code rea
                                           ^
index.docbook:96: element para: validity error : No declaration for element para
</para>
       ^
index.docbook:99: element guimenu: validity error : No declaration for element guimenu
 report dialog.  This is accessible from the <menuchoice><guimenu>Help</guimenu>
                                                                               ^
index.docbook:99: element guimenuitem: validity error : No declaration for element guimenuitem
 the <menuchoice><guimenu>Help</guimenu><guimenuitem>Report Bug...</guimenuitem>
                                                                               ^
index.docbook:99: element menuchoice: validity error : No declaration for element menuchoice
ice><guimenu>Help</guimenu><guimenuitem>Report Bug...</guimenuitem></menuchoice>
                                                                               ^
index.docbook:100: element para: validity error : No declaration for element para
</para>
       ^
index.docbook:101: element chapter: validity error : No declaration for element chapter
</chapter>
          ^
interface.docbook:1: element chapter: validity error : No declaration for attribute id of element chapter
<chapter id="chap-interface">
                            ^
interface.docbook:2: element title: validity error : No declaration for element title
<title>&ktikz; Interface</title>
                                ^
interface.docbook:4: element sect1: validity error : No declaration for attribute id of element sect1
<sect1 id="sect1-interface-mainwindow">
                                      ^
interface.docbook:5: element title: validity error : No declaration for element title
	<title>&ktikz; Main Window</title>
	                                  ^
interface.docbook:9: element screeninfo: validity error : No declaration for element screeninfo
			<screeninfo>Screenshot of &ktikz; main window</screeninfo>
			                                                          ^
interface.docbook:11: element imagedata: validity error : No declaration for attribute fileref of element imagedata
				<imageobject><imagedata fileref="interface-mainwindow.png" format="PNG"/></i
				                                                                       ^
interface.docbook:11: element imagedata: validity error : No declaration for attribute format of element imagedata
				<imageobject><imagedata fileref="interface-mainwindow.png" format="PNG"/></i
				                                                                       ^
interface.docbook:11: element imagedata: validity error : No declaration for element imagedata
				<imageobject><imagedata fileref="interface-mainwindow.png" format="PNG"/></i
				                                                                         ^
interface.docbook:11: element imageobject: validity error : No declaration for element imageobject
object><imagedata fileref="interface-mainwindow.png" format="PNG"/></imageobject
                                                                               ^
interface.docbook:12: element phrase: validity error : No declaration for element phrase
				<textobject><phrase>&ktikz; main window</phrase></textobject>
				                                                ^
interface.docbook:12: element textobject: validity error : No declaration for element textobject
				<textobject><phrase>&ktikz; main window</phrase></textobject>
				                                                             ^
interface.docbook:13: element mediaobject: validity error : No declaration for element mediaobject
			</mediaobject>
			              ^
interface.docbook:14: element screenshot: validity error : No declaration for element screenshot
		</screenshot>
		             ^
interface.docbook:15: element para: validity error : No declaration for element para
	</para>
	       ^
interface.docbook:19: element para: validity error : No declaration for element para
	</para>
	       ^
interface.docbook:22: element guilabel: validity error : No declaration for element guilabel
		The <guilabel>Preview</guilabel> and <guilabel>Messages</guilabel> panels can 
		                                ^
interface.docbook:22: element guilabel: validity error : No declaration for element guilabel
		The <guilabel>Preview</guilabel> and <guilabel>Messages</guilabel> panels can 
		                                                                  ^
interface.docbook:22: element guimenu: validity error : No declaration for element guimenu
ilabel> panels can be shown or hidden in <menuchoice><guimenu>Settings</guimenu>
                                                                               ^
interface.docbook:22: element guimenuitem: validity error : No declaration for element guimenuitem
en in <menuchoice><guimenu>Settings</guimenu><guimenuitem>Sidebars</guimenuitem>
                                                                               ^
interface.docbook:22: element menuchoice: validity error : No declaration for element menuchoice
oice><guimenu>Settings</guimenu><guimenuitem>Sidebars</guimenuitem></menuchoice>
                                                                               ^
interface.docbook:23: element para: validity error : No declaration for element para
	</para>
	       ^
interface.docbook:25: element sect2: validity error : No declaration for attribute id of element sect2
	<sect2 id="sect2-interface-mainwindow-editor">
	                                             ^
interface.docbook:26: element title: validity error : No declaration for element title
		<title>&ktikz; Editor</title>
		                             ^
interface.docbook:29: element quote: validity error : No declaration for element quote
ce code of a TikZ picture (everything between <quote>\begin{tikzpicture}</quote>
                                                                               ^
interface.docbook:29: element quote: validity error : No declaration for element quote
 between <quote>\begin{tikzpicture}</quote> and <quote>\end{tikzpicture}</quote>
                                                                               ^
interface.docbook:29: element guilabel: validity error : No declaration for element guilabel
 of the TikZ picture is generated on the fly in the <guilabel>Preview</guilabel>
                                                                               ^
interface.docbook:29: element keycombo: validity error : No declaration for attribute action of element keycombo
 selected by the user using the arrow keys and pressing <keycombo action="simul"
                                                                               ^
interface.docbook:29: element keycap: validity error : No declaration for element keycap
sing the arrow keys and pressing <keycombo action="simul"><keycap>Enter</keycap>
                                                                               ^
interface.docbook:29: element keycombo: validity error : No declaration for element keycombo
row keys and pressing <keycombo action="simul"><keycap>Enter</keycap></keycombo>
                                                                               ^
interface.docbook:29: element guilabel: validity error : No declaration for element guilabel
s selected in this way or if it is selected from the <guilabel>Insert</guilabel>
                                                                               ^
interface.docbook:29: element keycombo: validity error : No declaration for attribute action of element keycombo
ou can select the next or previous &bullet; by pressing <keycombo action="simul"
                                                                               ^
interface.docbook:29: element keycap: validity error : No declaration for element keycap
t or previous &bullet; by pressing <keycombo action="simul"><keycap>Tab</keycap>
                                                                               ^
interface.docbook:29: element keycombo: validity error : No declaration for element keycombo
us &bullet; by pressing <keycombo action="simul"><keycap>Tab</keycap></keycombo>
                                                                               ^
interface.docbook:29: element keycombo: validity error : No declaration for attribute action of element keycombo
combo action="simul"><keycap>Tab</keycap></keycombo> or <keycombo action="simul"
                                                                               ^
interface.docbook:29: parser error : Entity 'Shift' not defined
tion="simul"><keycap>Tab</keycap></keycombo> or <keycombo action="simul">&Shift;
                                                                               ^
interface.docbook:89: parser error : Entity 'Ctrl' not defined
ed by rolling the mouse wheel while pressing the <keycombo action="simul">&Ctrl;
                                                                               ^
interface.docbook:126: parser error : chunk is not well balanced

^
index.docbook:103: parser error : Failure to process entity ktikz-interface
&ktikz-interface;
                 ^
index.docbook:103: parser error : Entity 'ktikz-interface' not defined
&ktikz-interface;
                 ^
index.docbook:124: parser error : Entity 'underFDL' not defined
&underFDL;		<!-- FDL: do not remove (NOTE: All documentation are licensed under 
          ^
index.docbook:125: parser error : Entity 'underGPL' not defined
&underGPL;		<!-- GPL License -->
          ^
index.docbook:139: parser error : Entity 'kde' not defined
essfully use &ktikz; you need to at least to have kdebase and kdelibs from &kde;
                                                                               ^
index.docbook:144: parser error : Entity 'kde' not defined
to install the development packages for &qt; 4.4, kdebase and kdelibs from &kde;
                                                                               ^
index.docbook:144: parser error : Entity 'gcc' not defined
ckages for &qt; 4.4, kdebase and kdelibs from &kde; 4.3, &poppler; 0.6 and &gcc;
                                                                               ^
index.docbook:150: parser error : Entity 'kde' not defined
	<para>Since &kde; uses <command>cmake</command> you should have no trouble comp
	                 ^
index.docbook:154: parser error : Entity 'documentation.index' not defined
&documentation.index;
                     ^
Updating '/build/ktikz/src/build/translations/qtikz_cs.qm'...
kf5.kdoctools: Error: `xmllint --noout` outputted text
make[2]: *** [doc/CMakeFiles/doc-index-cache-bz2.dir/build.make:66: doc/index.cache.bz2] Error 1
make[1]: *** [CMakeFiles/Makefile2:1150: doc/CMakeFiles/doc-index-cache-bz2.dir/all] Error 2

Unable to export PDF

Selecting the KDE Frameworks Editor:

  1. I'm unable to export the PDF
    image

  2. Strange voice order in menu + disappearance of "Insert" "Process" "User Snippets"

image

With the Qt Editor is everything ok.

Kubuntu 20.10
Plasma: 5.19.5
KDE Frameworks: 5.74
Ktikz: 0.12

tmp log file naming problem

trying to run a simple example results in

[LaTeX] Error: run failed.
Command: pdflatex -halt-on-error -file-line-error -interaction nonstopmode -output-directory /tmp/ktikz-uoXhgU /tmp/ktikz-uoXhgU/temptikzcode.tex
[LaTeX] Warning: could not load LaTeX log file.
Log file: /tmp/ktikz-uoXhgU/temptikzcode.log

ls /tmp/ktikz-uoXhgU/ shows temptikzcode.pgf texput.log
any quick fix? I guess I could wrap the call in a script and move the log file...

Change Preview Background Color

Hey,

thanks for this handy tool!
But I would like to change the background color of the preview window to see how big my figure really is. Now its just white in white. Any chance such a setting will be introduced?
I use the QT version.

Thanks

preview problem when updated to texlive 2016

hi,

After upgrade to texlive 2016, ktikz preview windows only show part of generated picture: the top part of the picture is cutted, please refer to the attachment.
node-distance-demo pgf- - qtikz_092

My test pgf file is as below:

\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} \begin{tikzpicture} \graph [simple necklace layout, node distance=1cm, node sep=0pt, nodes={draw,circle,as=.}] { 1 -- 2 [minimum size=2cm] -- 3 -- 4 -- 5 -- 6 -- 7 --[orient=up] 8 }; \draw [red,|-|] (1.center) -- ++(0:1cm); \draw [red,|-|] (5.center) -- ++(180:1cm); \end{tikzpicture}

Some compilations warnings

Just in case they wouldn’t show for you, here are some compilations warning I’ve noticed:

/build/ktikz/src/ktikz-0.12/common/templatewidget.cpp: In member function ‘void TemplateWidget::editTemplateFile()’:
/build/ktikz/src/ktikz-0.12/common/templatewidget.cpp:184:76: warning: ‘static bool KRun::runUrl(const QUrl&, const QString&, QWidget*, bool, bool, const QString&, const QByteArray&)’ is deprecated [-Wdeprecated-declarations]
  KRun::runUrl( Url( fileName() ), QStringLiteral( "text/plain" ), NULL,  0 );
                                                                            ^
In file included from /usr/include/KF5/KIOWidgets/KRun:1,
                 from /build/ktikz/src/ktikz-0.12/common/templatewidget.cpp:22:
/usr/include/KF5/KIOWidgets/krun.h:302:39: note: declared here
     static bool KIOWIDGETS_DEPRECATED runUrl(const QUrl &url, const QString &mimetype, QWidget *window,
                                       ^~~~~~
/build/ktikz/src/ktikz-0.12/common/templatewidget.cpp:184:76: warning: ‘static bool KRun::runUrl(const QUrl&, const QString&, QWidget*, bool, bool, const QString&, const QByteArray&)’ is deprecated [-Wdeprecated-declarations]
  KRun::runUrl( Url( fileName() ), QStringLiteral( "text/plain" ), NULL,  0 );
                                                                            ^
In file included from /usr/include/KF5/KIOWidgets/KRun:1,
                 from /build/ktikz/src/ktikz-0.12/common/templatewidget.cpp:22:
/usr/include/KF5/KIOWidgets/krun.h:302:39: note: declared here
     static bool KIOWIDGETS_DEPRECATED runUrl(const QUrl &url, const QString &mimetype, QWidget *window,
                                       ^~~~~~
/build/ktikz/src/ktikz-0.12/common/utils/lineedit.cpp: In constructor ‘LineEdit::LineEdit(const QString&, QWidget*)’:
/build/ktikz/src/ktikz-0.12/common/utils/lineedit.cpp:17:26: warning: ‘void KLineEdit::setClearButtonShown(bool)’ is deprecated [-Wdeprecated-declarations]
  setClearButtonShown(true);
                          ^
In file included from /usr/include/KF5/KCompletion/KLineEdit:1,
                 from /build/ktikz/src/ktikz-0.12/common/utils/lineedit.h:15,
                 from /build/ktikz/src/ktikz-0.12/common/utils/lineedit.cpp:11:
/usr/include/KF5/KCompletion/klineedit.h:371:33: note: declared here
     KCOMPLETION_DEPRECATED void setClearButtonShown(bool show);
                                 ^~~~~~~~~~~~~~~~~~~
/build/ktikz/src/ktikz-0.12/common/utils/lineedit.cpp: In constructor ‘LineEdit::LineEdit(QWidget*)’:
/build/ktikz/src/ktikz-0.12/common/utils/lineedit.cpp:23:26: warning: ‘void KLineEdit::setClearButtonShown(bool)’ is deprecated [-Wdeprecated-declarations]
  setClearButtonShown(true);
                          ^
In file included from /usr/include/KF5/KCompletion/KLineEdit:1,
                 from /build/ktikz/src/ktikz-0.12/common/utils/lineedit.h:15,
                 from /build/ktikz/src/ktikz-0.12/common/utils/lineedit.cpp:11:
/usr/include/KF5/KCompletion/klineedit.h:371:33: note: declared here
     KCOMPLETION_DEPRECATED void setClearButtonShown(bool show);
                                 ^~~~~~~~~~~~~~~~~~~
/build/ktikz/src/ktikz-0.12/app/main.cpp: In function ‘void debugOutput(QtMsgType, const QMessageLogContext&, const QString&)’:
/build/ktikz/src/ktikz-0.12/app/main.cpp:56:9: warning: enumeration value ‘QtInfoMsg’ not handled in switch [-Wswitch]
  switch (type)
         ^
/build/ktikz/src/ktikz-0.12/app/tikzcommandinserter.cpp:187:24: warning: ‘TikzCommandList getCommands(QXmlStreamReader*, QList<TikzCommand>*)’ defined but not used [-Wunused-function]
 static TikzCommandList getCommands(QXmlStreamReader *xml, QList<TikzCommand> *tikzCommandsList)
                        ^~~~~~~~~~~
/build/ktikz/src/ktikz-0.12/app/mainwindow.cpp: In member function ‘void MainWindow::setCurrentEncoding(QTextCodec*, bool)’:
/build/ktikz/src/ktikz-0.12/app/mainwindow.cpp:1026:61: warning: unused parameter ‘isUserRequest’ [-Wunused-parameter]
 void MainWindow::setCurrentEncoding(QTextCodec *codec, bool isUserRequest)
                                                        ~~~~~^~~~~~~~~~~~~

Problem in saving file

When I modify a file and save it with another name, after the save, I keep modifying the original file and not the one with the new name.

[feature request] The real point for a visual Tikz editor

As far as I know, ktikz provide a real time preview for tikz code. So, if someone use e.g. latexmk and put its regular tex code and preview things it could replace the ktikz functionality.

However, what I think is immensely important and helpful in visual part is doing these two things at least:

  1. Having a tikzpicture, through the visual preview one could move the nodes or at least the coordinates
  2. Having a tikzpiture, one could change the style, color, etc.

Without these functionality I do not see how ktikz help if someone have an proper tool (with echo example.tex | entr -c make I can have ktikz/qtikz functionality). However, if KTikz could provide some visual manipulation tool as simple as moving coordinates visually that's great, I think.

p.s. This is very similar to inactive TikzEdt project

Does not build if only qt5 is installed

Hello,

while this program runs fine on a qt5 only system, building it will fail due to:

Info: creating stash file /tmp/makepkg/qtikz-git/src/qtikz/.qmake.stash
Project MESSAGE: *** QtikZ v0.12 ***
Project MESSAGE: Qt version: 5.10.1
Project MESSAGE: The program will be installed in
Project MESSAGE:   /usr/bin
Project MESSAGE: The resource files will be installed in
Project MESSAGE:   /usr/share/qtikz
Project MESSAGE: The documentation will be installed in
Project MESSAGE:   /usr/share/qtikz/documentation
Project MESSAGE: The desktop file will be installed in
Project MESSAGE:   /usr/share/applications
Project MESSAGE: The mimetype will be installed in
Project MESSAGE:   /usr/share/mime/packages
Project MESSAGE: The man page will be installed in
Project MESSAGE:   /usr/share/man
Project MESSAGE: 
Project MESSAGE: If you would like to change these paths,
Project MESSAGE: please adjust qtikzconfig.pri to your needs and rerun qmake.
lrelease-qt4 -silent translations/cs/qtikz_cs.ts -qm locale/qtikz_cs.qm
make: lrelease-qt4: Kommando nicht gefunden
make: *** [Makefile:1024: locale/qtikz_cs.qm] Fehler 127

I guess replacing lrelease-qt4 with lrelease-qt5 or lrelease would solve this.

Thanks in advance

Impossible to re-dock the preview pane once undocked

I did the mistake of clicking the "undock" button just above the preview window.

Now it floats as an independent window, and I couldn't find any way to bring it back to the default. I tried dragging, checking all menus, double clicking the title bar... nothing worked. I'm using GNOME 3 under Wayland, in case it matters.

I even tried to delete the ktikz configuration file (tried both ~/.config/ktikzrc and .config/Florian_Hackenberger/ktikz.conf) and the window remained undocked!

The exact same problem arises with qtikz (not sure what's the difference between the two, but Debian has both, independently packaged).

Update INSTALL file

Build instructions still refers to qt4 package, I don’t think this is right.

app/configeditorwidget.cpp:222: suspicious expression ?

ktikz-0.11/app/configeditorwidget.cpp:222:16: warning: '~' on an expression of type bool [-Wbool-operation]

Source code is

if(Q_LIKELY( ~b) ) // true when the widget is initialized...

Maybe better code

if(Q_LIKELY( !b) ) // true when the widget is initialized...

Spam code appears when i'm saving

When i save a new image as .tex, some junk code appears.
For example : \end{tikzpicture}}
(one } too much).

I've use another program to clean (TexMaker) this junk code.

I'm on Ubuntu 20.4.

Perhaps because i've not reboot after install this soft?

Window title after Save As ...

The main window title is not updated after a Save As ... operation, although the operation works as expected with further saves to the correct file.

Add support for other compilers

Currently, it seems that ktikz is indeed only working with pdflatex, it would be nice if support for lualatex could be added. (replacing pdflatex with lualatex results in errors)

Show also *.tex files in file-open dialog

It would be fine to get also all *.tex files in file open dialog.

Change

parsedFilter += QCoreApplication::translate("FileDialog", "PGF document", "filter") + QLatin1String(" (*.pgf *.tikz)");

to

parsedFilter += QCoreApplication::translate("FileDialog", "PGF document", "filter") + QLatin1String(" (*.pgf *.tikz *.tex)");

in filedialog.cpp

New releases

Hey,

Are you planning on create new releases of ktikz, either KDE4 ou 5, so we could include the features introduced in older version of Ubuntu for example. I noticed that the Ubuntu version is quiet old. I would assist you on the packaging side, as I at the moment am delivering pkg for Gentoo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.