How to apply modifiers to error messages
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Cameron Grace
il 30 Ott 2020
Commentato: Cameron Grace
il 30 Ott 2020
Hi there this is the code I have been working with and I want to know from an actual example on how to apply a change in font size to the error pop up window. I am aware of the modifiers, using "TeX Markups," but this is extremely not clear in that there are no simple examples. Can someone tell where '\fontsize{15} text' goes?
opts = struct('WindowStyle','replace',...
'Interpreter','tex')
f = errordlg('This is my error message')
The way its written it looks like this is where it goes, but this is clearly not correct.
f = errordlg('\fontsize{15}This is my error message')
Thank you for whowever can help me with this.
All the best!
0 Commenti
Risposta accettata
Peter O
il 30 Ott 2020
You've almost got it. The TeX formatting is correct. You need to include the interpreter and modality of the window in a struct as the 3rd argument, which means you also need to specify the title bar for the dialog window (I'm showing modal here, but 'non-modal' and 'replace' also work)
errordlg('\fontsize{15}This is my error', 'My Error Dialog', struct('Interpreter','TeX','WindowStyle','Modal'))
Più risposte (1)
Walter Roberson
il 30 Ott 2020
f = errordlg('\fontsize{3}This is my error message', 'Woops', opts);
Where 'Woops' is the title to give to the dialog.
Vedere anche
Categorie
Scopri di più su Environment and Settings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!