Word 2010: Sentence right under picture

1,594

Have you tried right clicking and selecting Insert Caption? Is this what you want?

Word 2010 Picture right click menuWord 2010 Picture with caption

Share:
1,594

Related videos on Youtube

Aritz
Author by

Aritz

Updated on September 18, 2022

Comments

  • Aritz
    Aritz over 1 year

    I've generated a Spring Boot + Angular 1 based project in jHipster. I'm kind of newbie the Angular world. Everything works fine, but when I input the date using the provided UI datepicker (https://angular-ui.github.io/bootstrap), its format is yyyy-MM-dd, even if I've defined spanish to be my only language package (I would prefer it to be dd/MM/yyyy). That's the code snippet for the input:

    regulation-version-dialog.html

    <div class="form-group">
        <label class="control-label"
            data-translate="selfprotectionApp.regulationVersion.versionDate"
            for="field_versionDate">Version Date</label>
        <div class="input-group">
            <input id="field_versionDate" type="text" class="form-control"
                name="versionDate" uib-datepicker-popup="{{dateformat}}"
                ng-model="vm.regulationVersion.versionDate"
                is-open="vm.datePickerOpenStatus.versionDate" /> <span
                class="input-group-btn">
                <button type="button" class="btn btn-default"
                    ng-click="vm.openCalendar('versionDate')">
                    <i class="glyphicon glyphicon-calendar"></i>
                </button>
            </span>
        </div>
    </div>
    

    Here there's the {{dateformat}} binding, but I don't know where jHipster picks it from. The only matches are in the date-util.service.js file, but changing the format here doesn't seem to affect.

    date-util.service.js

    (function() {
        'use strict';
    
        angular
            .module('selfprotectionApp')
            .factory('DateUtils', DateUtils);
    
        DateUtils.$inject = ['$filter'];
    
        function DateUtils($filter) {
    
            var service = {
                convertDateTimeFromServer: convertDateTimeFromServer,
                convertLocalDateFromServer: convertLocalDateFromServer,
                convertLocalDateToServer: convertLocalDateToServer,
                dateformat: dateformat
            };
    
            return service;
    
            function convertDateTimeFromServer(date) {
                if (date) {
                    return new Date(date);
                } else {
                    return null;
                }
            }
    
            function convertLocalDateFromServer(date) {
                if (date) {
                    var dateString = date.split('-');
                    return new Date(dateString[0], dateString[1] - 1, dateString[2]);
                }
                return null;
            }
    
            function convertLocalDateToServer(date) {
                if (date) {
                    return $filter('date')(date, 'yyyy-MM-dd');
                } else {
                    return null;
                }
            }
    
            function dateformat() {
                return 'yyyy-MM-dd';
            }
        }
    
    })();
    

    Of course, I could replace the {{dateformat}} expression by some date format in HTML, but I would like to do it for the whole project.

    • neptune
      neptune almost 7 years
      Maybe your dateformat is not set properly. I suppose that is done in the controller somehow.
  • CodyChen
    CodyChen almost 12 years
    Using the options in the Insert Caption will allow you to create a borderless table. It will also link the two for you automatically.
  • Aritz
    Aritz almost 7 years
    Thanks! Will give it a try