
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (69)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (9899)
-
Revision 6d0097737d : Refactor SPLITMV in RD to a special case. SPLITMV shares very little code with
8 août 2012, par Daniel KangChanged Paths : Modify /vp8/encoder/rdopt.c Refactor SPLITMV in RD to a special case. SPLITMV shares very little code with the other inter modes. Change-Id : I0beee95de1fbedeea1f71650951ffc7db3a118eb
-
Clarified the transient nature of `clip.setText`
8 août 2013, par JamesMGreeneClarified the transient nature of `clip.setText`
Closes #209.
-
How render latex fonts and formulas in Cairo C ?
15 octobre 2020, par KarlI've tried the next steps :


- 

- A standalone tex file :




\documentclass[preview]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\begin{document}

\[ \sum_{i=1}^{n}i^3=\left( \sum_{i=1}^{n}i \right)^2 \]

\end{document}



- 

- I've compiled with this :




latex file.tex



It means :
pdfTeX Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
to got thedvi
file.

- 

- Transform my
dvi
tosvg
with the next :




dvisvgm --libgs=/usr/local/Cellar/ghostscript/9.53.3/lib/libgs.9.53.dylib file.dvi



Here I got the first trouble


When I open my
svg
it render with fake symbols inChrome
, but inSafari
I obtain a success with it. However I discard that and I continue with Cairo.

#include 
#include <librsvg></librsvg>rsvg.h>
#include 

int main(void){

 cairo_surface_t *surface;
 cairo_t *cr;
 RsvgHandle *handle;

 /* Code */

 if( (handle = rsvg_handle_new_from_file("file.svg", NULL)) == NULL ){
 printf("Error trying to load a SVG file\n");
 }

 if( rsvg_handle_render_cairo(handle, cr) != TRUE ){
 printf("Error trying to draw a SVG file\n");
 }

 cairo_surface_write_to_png(surface, "image.png");
 cairo_destroy(cr);
 cairo_surface_destroy(surface);

 return 0;

}



And I render this :




That symbols are the same in
Chrome
. When I open mysvg
it looks at last lines like this :

<text class="'f1'" x="'138.107022'" y="'-25.204175'">n</text>
<text class="'f4'" x="'133.374191'" y="'-22.215398'"></text>
<text class="'f1'" x="'134.116478'" y="'-0.996264'">i</text>
<text class="'f3'" x="'136.935205'" y="'-0.996264'">=1</text>
<text class="'f0'" x="'149.425099'" y="'-12.750829'">i</text>
<text class="'f3'" x="'152.857357'" y="'-16.864325'">3</text>
<text class="'f2'" x="'160.09406'" y="'-12.750829'">=</text>
<text class="'f4'" x="'170.610139'" y="'-29.787102'"></text>
<text class="'f1'" x="'183.230082'" y="'-25.204175'">n</text>
<text class="'f4'" x="'178.49725'" y="'-22.215398'"></text>
<text class="'f1'" x="'179.239538'" y="'-0.996264'">i</text>
<text class="'f3'" x="'182.058265'" y="'-0.996264'">=1</text>
<text class="'f0'" x="'194.548158'" y="'-12.750829'">i</text>
<text class="'f4'" x="'197.980417'" y="'-29.787102'"></text>
<text class="'f3'" x="'205.867527'" y="'-27.722624'">2</text>



So something fail.


In the other hand I'de like to say that
pig-config --cflags librsvg-2.0
shows the right output but when I read the Headers there's aWARNING
there about Cairo users :

#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
#warning "Including <librsvg></librsvg>rsvg-cairo.h> directly is deprecated."
#endif

#ifndef RSVG_CAIRO_H
#define RSVG_CAIRO_H

#include 



And that's the reason to include
rsvg
header instead ofCairo-svg
cause it includes that yet :

#ifndef RSVG_H
#define RSVG_H

#define __RSVG_RSVG_H_INSIDE__

#include 
#include <gio></gio>gio.h>

#include 
#include gdk-pixbuf.h>

G_BEGIN_DECLS

/* Code and Defs */

G_END_DECLS

#include "librsvg-features.h"
#include "rsvg-cairo.h"




But there's no any documentation about it.


And the last question :


What's the best way to render a latex formula in a mp4 video format ?


I mean, I've tried with Cairo and then put it in a video. but There's better results rendering that formula directly with
FFMPEG
? I found some results withpython
but sincerely I'm tired with it. I'm looking for different ways. The purpose in this : UseC
code.